~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-10-15 11:29:38 UTC
  • mfrom: (5499.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20101015112938-8585tdgvnin38kfv
(vila) Add bzrlib/pyutils.py,
        and replace uses of __import__ with calls to pyutils.get_named_object
        (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    return [t.id() for t in tests.iter_suite_tests(test_suite)]
82
82
 
83
83
 
84
 
class SelftestTests(tests.TestCase):
85
 
 
86
 
    def test_import_tests(self):
87
 
        mod = TestUtil._load_module_by_name('bzrlib.tests.test_selftest')
88
 
        self.assertEqual(mod.SelftestTests, SelftestTests)
89
 
 
90
 
    def test_import_test_failure(self):
91
 
        self.assertRaises(ImportError,
92
 
                          TestUtil._load_module_by_name,
93
 
                          'bzrlib.no-name-yet')
94
 
 
95
 
 
96
84
class MetaTestLog(tests.TestCase):
97
85
 
98
86
    def test_logging(self):