mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
14 lines
304 B
Python
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')
|