diff options
| author | Robert Collins <robertc@robertcollins.net> | 2009-02-15 22:55:00 +1100 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2009-02-15 22:55:00 +1100 |
| commit | f05660cc320295024d7db8758bde540f319314c3 (patch) | |
| tree | 4129307512de6ee14240e112702485833e5d27a3 /python/subunit/tests | |
| parent | a212722f3f93a8d8bc3620d0ac5276e1491cee29 (diff) | |
| download | subunit-git-f05660cc320295024d7db8758bde540f319314c3.tar.gz | |
Review feedback.
Diffstat (limited to 'python/subunit/tests')
| -rw-r--r-- | python/subunit/tests/test_tap2subunit.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/python/subunit/tests/test_tap2subunit.py b/python/subunit/tests/test_tap2subunit.py index 7e59985..bc6bf14 100644 --- a/python/subunit/tests/test_tap2subunit.py +++ b/python/subunit/tests/test_tap2subunit.py @@ -59,7 +59,9 @@ class TestTAP2SubUnit(unittest.TestCase): def test_ok_test_pass(self): # A file # ok - # results in a passed test with name 'test 1' + # results in a passed test with name 'test 1' (a synthetic name as tap + # does not require named fixtures - it is the first test in the tap + # stream). self.tap.write("ok\n") self.tap.seek(0) result = subunit.TAP2SubUnit(self.tap, self.subunit) @@ -284,7 +286,7 @@ class TestTAP2SubUnit(unittest.TestCase): # not ok 4 - fourth # 1..4 # results in four tests numbered and named - self.tap.write('ok 1 - first test in a script with no plan at all\n') + self.tap.write('ok 1 - first test in a script with trailing plan\n') self.tap.write('not ok 2 - second\n') self.tap.write('ok 3 - third\n') self.tap.write('not ok 4 - fourth\n') @@ -293,8 +295,8 @@ class TestTAP2SubUnit(unittest.TestCase): result = subunit.TAP2SubUnit(self.tap, self.subunit) self.assertEqual(0, result) self.assertEqual([ - 'test test 1 - first test in a script with no plan at all', - 'success test 1 - first test in a script with no plan at all', + 'test test 1 - first test in a script with trailing plan', + 'success test 1 - first test in a script with trailing plan', 'test test 2 - second', 'failure test 2 - second', 'test test 3 - third', @@ -313,7 +315,7 @@ class TestTAP2SubUnit(unittest.TestCase): # not ok 4 - fourth # results in four tests numbered and named self.tap.write('1..4\n') - self.tap.write('ok 1 - first test in a script with no plan at all\n') + self.tap.write('ok 1 - first test in a script with a plan\n') self.tap.write('not ok 2 - second\n') self.tap.write('ok 3 - third\n') self.tap.write('not ok 4 - fourth\n') @@ -321,8 +323,8 @@ class TestTAP2SubUnit(unittest.TestCase): result = subunit.TAP2SubUnit(self.tap, self.subunit) self.assertEqual(0, result) self.assertEqual([ - 'test test 1 - first test in a script with no plan at all', - 'success test 1 - first test in a script with no plan at all', + 'test test 1 - first test in a script with a plan', + 'success test 1 - first test in a script with a plan', 'test test 2 - second', 'failure test 2 - second', 'test test 3 - third', |
