diff options
| author | Thomi Richards <thomi.richards@canonical.com> | 2013-11-25 18:14:57 +1300 |
|---|---|---|
| committer | Thomi Richards <thomi.richards@canonical.com> | 2013-11-25 18:14:57 +1300 |
| commit | 5ff12037a964e1ccf4a179fcafb6e91cf0dd4d0f (patch) | |
| tree | 2e730a8cf06306c1e17cbb6a9df895164ab068bf /python/subunit/tests | |
| parent | 2fed9ee652ea198de3b26173db9bd5480f2ac057 (diff) | |
| download | subunit-git-5ff12037a964e1ccf4a179fcafb6e91cf0dd4d0f.tar.gz | |
Added test for poorly specified tags.
Diffstat (limited to 'python/subunit/tests')
| -rw-r--r-- | python/subunit/tests/test_output_filter.py | 7 |
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. |
