mirror of
https://github.com/ceph/ceph
synced 2024-12-23 11:54:11 +00:00
cbe7d8e5a1
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
17 lines
418 B
Python
17 lines
418 B
Python
import subprocess
|
|
from pytest import raises
|
|
|
|
|
|
class Script(object):
|
|
script_name = 'teuthology'
|
|
|
|
def test_help(self):
|
|
args = (self.script_name, '--help')
|
|
out = subprocess.check_output(args)
|
|
assert out.startswith('usage')
|
|
|
|
def test_invalid(self):
|
|
args = (self.script_name, 'INVALID')
|
|
with raises(subprocess.CalledProcessError):
|
|
subprocess.check_call(args)
|