~testing-cabal/ubuntu/natty/python-testtools/daily-build-packaging

« back to all changes in this revision

Viewing changes to testtools/tests/test_testresult.py

  • Committer: Jonathan Lange
  • Date: 2008-10-04 03:59:24 UTC
  • Revision ID: jml@canonical.com-20081004035924-zqtr6r1vcax6nsmd
Remove ITestResult and thus the undocumented dependency on zope.interfaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
import sys
8
8
 
9
 
from testtools import ITestResult, MultiTestResult, TestCase, TestResult
 
9
from testtools import MultiTestResult, TestCase, TestResult
10
10
from testtools.tests.helpers import LoggingResult
11
11
 
12
12
 
21
21
        # `TestResult` has a `done` method that, by default, does nothing.
22
22
        self.makeResult().done()
23
23
 
24
 
    def test_interface(self):
25
 
        # testtools's `TestResult` implements `ITestResult`.
26
 
        self.assertTrue(
27
 
            ITestResult.providedBy(self.makeResult()),
28
 
            'ITestResult not provided by TestResult')
29
 
 
30
24
 
31
25
class TestMultiTestResult(TestCase):
32
26
    """Tests for `MultiTestResult`."""