summaryrefslogtreecommitdiff
path: root/python/subunit/tests/test_output_filter.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/subunit/tests/test_output_filter.py')
-rw-r--r--python/subunit/tests/test_output_filter.py7
1 files changed, 7 insertions, 0 deletions
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.