~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Martin Pool
  • Date: 2009-08-03 06:12:10 UTC
  • mfrom: (4581 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4582.
  • Revision ID: mbp@sourcefrog.net-20090803061210-cuq09gc56h3egcx8
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
1486
1486
        result = bzrlib.tests.VerboseTestResult(
1487
1487
            unittest._WritelnDecorator(output_stream),
1488
1488
            descriptions=0,
1489
 
            verbosity=2,
1490
 
            num_tests=sample_test.countTestCases())
 
1489
            verbosity=2)
1491
1490
        sample_test.run(result)
1492
1491
        self.assertContainsRe(
1493
1492
            output_stream.getvalue(),
2368
2367
                return tests.ExtendedTestResult(self.stream, self.descriptions,
2369
2368
                                                self.verbosity)
2370
2369
        tests.run_suite(suite, runner_class=MyRunner, stream=StringIO())
2371
 
        self.assertEqual(calls, [suite])
 
2370
        self.assertLength(1, calls)
2372
2371
 
2373
2372
    def test_done(self):
2374
2373
        """run_suite should call result.done()"""