Files
asciinema/tests/commands/error_test.py
2013-09-30 22:45:58 +02:00

14 lines
304 B
Python

from nose.tools import assert_raises
from commands.error import ErrorCommand
from test_helper import assert_printed, Test
class TestErrorCommand(Test):
def test_execute(self):
command = ErrorCommand('foo')
assert_raises(SystemExit, command.execute)
assert_printed('foo')