diff options
| author | Robert Collins <robertc@robertcollins.net> | 2010-01-16 10:02:12 +1100 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2010-01-16 10:02:12 +1100 |
| commit | 36a5f59d01e04a91825bb7e6f5250f9613851da7 (patch) | |
| tree | ed0f8dd9b55b710796d283dcac51e2dbc9f62da0 /python/subunit/tests | |
| parent | 68e069afc359c8b5a0b48ccc1304a85997d93cdf (diff) | |
| download | subunit-36a5f59d01e04a91825bb7e6f5250f9613851da7.tar.gz | |
Only take commands that start the line they are observed on.
Diffstat (limited to 'python/subunit/tests')
| -rw-r--r-- | python/subunit/tests/test_test_protocol.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py index 9e9db18..f10380b 100644 --- a/python/subunit/tests/test_test_protocol.py +++ b/python/subunit/tests/test_test_protocol.py @@ -124,6 +124,10 @@ class TestTestProtocolServerStartTest(unittest.TestCase): self.assertEqual(self.client._events, [('startTest', subunit.RemotedTestCase("old mcdonald"))]) + def test_indented_test_colon_ignored(self): + self.protocol.lineReceived(" test: old mcdonald\n") + self.assertEqual([], self.client._events) + def test_start_testing_colon(self): self.protocol.lineReceived("testing: old mcdonald\n") self.assertEqual(self.client._events, |
