diff options
| author | Jonathan Lange <jml@mumak.net> | 2012-04-10 14:26:44 +0100 |
|---|---|---|
| committer | Jonathan Lange <jml@mumak.net> | 2012-04-10 14:26:44 +0100 |
| commit | aad389aa5cd509434a171c14cdc76a1358d80b57 (patch) | |
| tree | 683b7166b0075cfd6daa10e21429bfdfbfacb724 /python/subunit/tests | |
| parent | 55920e2d547c0dfe0c0e312b39ae052992726148 (diff) | |
| download | subunit-aad389aa5cd509434a171c14cdc76a1358d80b57.tar.gz | |
Allow the predicate to filter tags.
Diffstat (limited to 'python/subunit/tests')
| -rw-r--r-- | python/subunit/tests/test_test_results.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/subunit/tests/test_test_results.py b/python/subunit/tests/test_test_results.py index 6beb57a..2bec7e3 100644 --- a/python/subunit/tests/test_test_results.py +++ b/python/subunit/tests/test_test_results.py @@ -56,6 +56,16 @@ class AssertBeforeTestResult(LoggingDecorator): super(AssertBeforeTestResult, self)._before_event() +class TestTestResultDecorator(unittest.TestCase): + + def test_current_tags(self): + result = ExtendedTestResult() + decorator = subunit.test_results.TestResultDecorator(result) + decorator.tags(set('foo'), set()) + self.assertEqual(set('foo'), decorator.current_tags) + self.assertEqual(decorator.current_tags, result.current_tags) + + class TimeCapturingResult(unittest.TestResult): def __init__(self): |
