Use the newly exposed test helpers from testtools trunk.
[third_party/subunit] / python / subunit / tests / test_test_results.py
index 0d7d1a9b431efb607c159f9436efa90fb48676ce..dac628858d90727877e76a18abf4f130e9242a5b 100644 (file)
@@ -68,84 +68,6 @@ class LoggingResult(object):
         self.shouldStop = False
 
 
-class Python26TestResult(LoggingResult):
-    """A python 2.6 like test result, that logs."""
-
-    def addError(self, test, err):
-        self._calls.append(('addError', test, err))
-
-    def addFailure(self, test, err):
-        self._calls.append(('addFailure', test, err))
-
-    def addSuccess(self, test):
-        self._calls.append(('addSuccess', test))
-
-    def startTest(self, test):
-        self._calls.append(('startTest', test))
-
-    def stop(self):
-        self.shouldStop = True
-
-    def stopTest(self, test):
-        self._calls.append(('stopTest', test))
-
-
-class Python27TestResult(Python26TestResult):
-    """A python 2.7 like test result, that logs."""
-
-    def addExpectedFailure(self, test, err):
-        self._calls.append(('addExpectedFailure', test, err))
-
-    def addSkip(self, test, reason):
-        self._calls.append(('addSkip', test, reason))
-
-    def addUnexpectedSuccess(self, test):
-        self._calls.append(('addUnexpectedSuccess', test))
-
-    def startTestRun(self):
-        self._calls.append(('startTestRun',))
-
-    def stopTestRun(self):
-        self._calls.append(('stopTestRun',))
-
-
-class ExtendedTestResult(Python27TestResult):
-    """A test result like the proposed extended unittest result API."""
-
-    def addError(self, test, err=None, details=None):
-        self._calls.append(('addError', test, err or details))
-
-    def addFailure(self, test, err=None, details=None):
-        self._calls.append(('addFailure', test, err or details))
-
-    def addExpectedFailure(self, test, err=None, details=None):
-        self._calls.append(('addExpectedFailure', test, err or details))
-
-    def addSkip(self, test, reason=None, details=None):
-        self._calls.append(('addSkip', test, reason or details))
-
-    def addSuccess(self, test, details=None):
-        if details:
-            self._calls.append(('addSuccess', test, details))
-        else:
-            self._calls.append(('addSuccess', test))
-
-    def addUnexpectedSuccess(self, test, details=None):
-        if details:
-            self._calls.append(('addUnexpectedSuccess', test, details))
-        else:
-            self._calls.append(('addUnexpectedSuccess', test))
-
-    def progress(self, offset, whence):
-        self._calls.append(('progress', offset, whence))
-
-    def tags(self, new_tags, gone_tags):
-        self._calls.append(('tags', new_tags, gone_tags))
-
-    def time(self, time):
-        self._calls.append(('time', time))
-
-
 class TestHookedTestResultDecorator(unittest.TestCase):
 
     def setUp(self):