diff options
| author | Jonathan Lange <jml@canonical.com> | 2011-02-10 17:42:15 +0000 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2011-02-10 17:42:15 +0000 |
| commit | 5358e383f7bdea693ec5f0e6182d8a45df9e8c3b (patch) | |
| tree | 731c689a75f6f8b9185a0692125e920216764c77 /python/subunit | |
| parent | 5ab0d77e721455ba1b1be5d962becbe404769a31 (diff) | |
| download | subunit-git-5358e383f7bdea693ec5f0e6182d8a45df9e8c3b.tar.gz | |
More flakes to fix up
Diffstat (limited to 'python/subunit')
| -rw-r--r-- | python/subunit/tests/test_test_protocol.py | 8 | ||||
| -rw-r--r-- | python/subunit/tests/test_test_results.py | 20 |
2 files changed, 8 insertions, 20 deletions
diff --git a/python/subunit/tests/test_test_protocol.py b/python/subunit/tests/test_test_protocol.py index ca56c8f..f7bab5c 100644 --- a/python/subunit/tests/test_test_protocol.py +++ b/python/subunit/tests/test_test_protocol.py @@ -678,15 +678,9 @@ class TestTestProtocolServerAddSuccess(unittest.TestCase): ], self.client._events) def test_simple_success(self): - self.simple_success_keyword("failure") - - def test_simple_success_colon(self): - self.simple_success_keyword("failure:") - - def test_simple_failure(self): self.simple_success_keyword("successful") - def test_simple_failure_colon(self): + def test_simple_success_colon(self): self.simple_success_keyword("successful:") def assertSuccess(self, details): diff --git a/python/subunit/tests/test_test_results.py b/python/subunit/tests/test_test_results.py index fe82c04..a2dad96 100644 --- a/python/subunit/tests/test_test_results.py +++ b/python/subunit/tests/test_test_results.py @@ -6,7 +6,7 @@ # license at the users choice. A copy of both licenses are available in the # project source as Apache-2.0 and BSD. You may not use this file except in # compliance with one of these two licences. -# +# # Unless required by applicable law or agreed to in writing, software # distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -16,12 +16,6 @@ import datetime import unittest -from StringIO import StringIO -import os -import sys - -from testtools.content_type import ContentType -from testtools.content import Content import subunit import subunit.iso8601 as iso8601 @@ -82,22 +76,22 @@ class TestHookedTestResultDecorator(unittest.TestCase): def test_startTest(self): self.result.startTest(self) - + def test_startTestRun(self): self.result.startTestRun() - + def test_stopTest(self): self.result.stopTest(self) - + def test_stopTestRun(self): self.result.stopTestRun() def test_addError(self): self.result.addError(self, subunit.RemoteError()) - + def test_addError_details(self): self.result.addError(self, details={}) - + def test_addFailure(self): self.result.addFailure(self, subunit.RemoteError()) @@ -142,7 +136,7 @@ class TestHookedTestResultDecorator(unittest.TestCase): def test_time(self): self.result.time(None) - + class TestAutoTimingTestResultDecorator(unittest.TestCase): |
