~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Robert Collins
  • Date: 2009-11-12 07:38:22 UTC
  • mto: This revision was merged to the branch mainline in revision 4920.
  • Revision ID: robertc@robertcollins.net-20091112073822-regtsaqzfbonmafc
Derive bzr's TestCase from testtools.testcase.TestCase.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2931
2931
    def test_load_tests(self):
2932
2932
        test_list = ['bzrlib.tests.test_sampler.DemoTest.test_nothing']
2933
2933
        loader = self._create_loader(test_list)
2934
 
 
2935
2934
        suite = loader.loadTestsFromModuleName('bzrlib.tests.test_sampler')
2936
2935
        self.assertEquals(test_list, _test_ids(suite))
2937
2936
 
2938
2937
    def test_exclude_tests(self):
2939
2938
        test_list = ['bogus']
2940
2939
        loader = self._create_loader(test_list)
2941
 
 
2942
2940
        suite = loader.loadTestsFromModuleName('bzrlib.tests.test_sampler')
2943
2941
        self.assertEquals([], _test_ids(suite))
2944
2942