mirror of
https://github.com/ceph/ceph
synced 2025-01-11 05:29:51 +00:00
17 lines
459 B
Python
17 lines
459 B
Python
|
from script import Script
|
||
|
import subprocess
|
||
|
from pytest import raises
|
||
|
|
||
|
|
||
|
class TestUpdatekeys(Script):
|
||
|
script_name = 'teuthology-updatekeys'
|
||
|
|
||
|
def test_all_and_targets(self):
|
||
|
args = (self.script_name, '-a', '-t', 'foo')
|
||
|
with raises(subprocess.CalledProcessError):
|
||
|
subprocess.check_call(args)
|
||
|
|
||
|
def test_no_args(self):
|
||
|
with raises(subprocess.CalledProcessError):
|
||
|
subprocess.check_call(self.script_name)
|