diff options
| author | Jonathan Lange <jml@canonical.com> | 2011-02-15 10:52:45 +0000 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2011-02-15 10:52:45 +0000 |
| commit | bcf71c5bda3e02177fa8f65af04ef88c7afabd93 (patch) | |
| tree | 2dc12a7d14a62685ae11087d8e948a3cdfd797c5 /python | |
| parent | c6d9b6cc38c2190e931baeab8b98475e39f1c894 (diff) | |
| download | subunit-bcf71c5bda3e02177fa8f65af04ef88c7afabd93.tar.gz | |
Add different support.
Diffstat (limited to 'python')
| -rw-r--r-- | python/subunit/tests/test_test_results.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/python/subunit/tests/test_test_results.py b/python/subunit/tests/test_test_results.py index bed2bd8..94d2274 100644 --- a/python/subunit/tests/test_test_results.py +++ b/python/subunit/tests/test_test_results.py @@ -214,6 +214,21 @@ class TestTagCollapsingDecorator(TestCase): ('stopTest', test)], result._events) + def test_tags_collapsed_inside_of_tests_different_ordering(self): + result = ExtendedTestResult() + tag_collapser = subunit.test_results.TagCollapsingDecorator(result) + test = subunit.RemotedTestCase('foo') + tag_collapser.startTest(test) + tag_collapser.tags(set(), set(['a'])) + tag_collapser.tags(set(['a', 'b']), set()) + tag_collapser.tags(set(['c']), set()) + tag_collapser.stopTest(test) + self.assertEquals( + [('startTest', test), + ('tags', set(['a', 'b', 'c']), set()), + ('stopTest', test)], + result._events) + class TestTimeCollapsingDecorator(TestCase): |
