70:ff099617103f
Anton Shestakov <av6@dwimlabs.net>, Sun, 26 Jun 2016 14:21:43 +0800
tests: test run() from checker.py

next change 71:6e9d9e772cf5

tests/test_checker.py

Permissions: -rw-r--r--

Other formats: Feeds:
from checker import run
def test_run():
result = run(['true'])
assert result is True
result = run(['false'])
assert result is False
result = run(['false'], ignore_codes=(1,))
assert result is True
result = run(['false'], ignore_codes=(127,))
assert result is False
result = run(['echo', 'hi'], get_output=False)
assert result is True
result = run(['echo', 'hi'], get_output=True)
assert result == 'hi\n'