From 5ff12037a964e1ccf4a179fcafb6e91cf0dd4d0f Mon Sep 17 00:00:00 2001 From: Thomi Richards Date: Mon, 25 Nov 2013 18:14:57 +1300 Subject: Added test for poorly specified tags. --- python/subunit/tests/test_output_filter.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'python/subunit/tests') diff --git a/python/subunit/tests/test_output_filter.py b/python/subunit/tests/test_output_filter.py index f3000ad..a31ae2b 100644 --- a/python/subunit/tests/test_output_filter.py +++ b/python/subunit/tests/test_output_filter.py @@ -187,6 +187,13 @@ class ArgParserTests(TestCaseWithPatchedStderr): '--tags without a status command\n')) ) + def test_must_specify_tags_with_tags_options(self): + fn = lambda: safe_parse_arguments(['--fail', 'foo', '--tags']) + self.assertThat( + fn, + raises(RuntimeError('subunit-output: error: Must specify at least one tag with --tags\n')) + ) + def get_result_for(commands): """Get a result object from *commands. -- cgit v1.2.1