def test_no_file(self): with no_stderr(): input.parse_args([])
def test_no_file(self): with no_stderr(): input.parse_args([])
def test_incorrect_format(self): with no_stderr(): with assert_raises(SystemExit): input.parse_args(['-o', 'foo', '-f', 'baz', 'bar']) with assert_raises(SystemExit): input.parse_args(['-o', 'foo.baz', 'bar'])
def test_incorrect_format(self): with no_stderr(): with assert_raises(SystemExit): input.parse_args(['-o', 'foo', '-f', 'baz', 'bar']) with assert_raises(SystemExit): input.parse_args(['-o', 'foo.baz', 'bar'])