summaryrefslogtreecommitdiff
path: root/python/subunit/tests
diff options
context:
space:
mode:
authorJonathan Lange <jml@mumak.net>2012-04-19 19:13:36 +0100
committerJonathan Lange <jml@mumak.net>2012-04-19 19:13:36 +0100
commit87338c132fb605881db065c20b9aa2f293946e8e (patch)
tree9123b3ee5b2ab92c76176f2bacd08295f50e5db6 /python/subunit/tests
parentdcf88f6c47a42c791ddf257ee4f6050e943ba906 (diff)
downloadsubunit-git-87338c132fb605881db065c20b9aa2f293946e8e.tar.gz
don't rely on current_tags, implement it ourselves.
Diffstat (limited to 'python/subunit/tests')
-rw-r--r--python/subunit/tests/test_subunit_filter.py8
-rw-r--r--python/subunit/tests/test_test_results.py10
2 files changed, 5 insertions, 13 deletions
diff --git a/python/subunit/tests/test_subunit_filter.py b/python/subunit/tests/test_subunit_filter.py
index d5f204a..35d4603 100644
--- a/python/subunit/tests/test_subunit_filter.py
+++ b/python/subunit/tests/test_subunit_filter.py
@@ -92,7 +92,6 @@ xfail todo
('startTest', test),
('addSuccess', test),
('stopTest', test),
- ('tags', set(['local']), set()),
],
result._events)
@@ -298,9 +297,12 @@ xfail todo
events = self.to_events(output)
foo = subunit.RemotedTestCase('foo')
self.assertEqual(
- [('startTest', foo),
+ [('tags', set(['a']), set()),
+ ('startTest', foo),
('addSuccess', foo),
- ('stopTest', foo)],
+ ('stopTest', foo),
+ ('tags', set(), set(['a'])),
+ ],
events)
diff --git a/python/subunit/tests/test_test_results.py b/python/subunit/tests/test_test_results.py
index 2bec7e3..6beb57a 100644
--- a/python/subunit/tests/test_test_results.py
+++ b/python/subunit/tests/test_test_results.py
@@ -56,16 +56,6 @@ 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):