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)
2935
2934
suite = loader.loadTestsFromModuleName('bzrlib.tests.test_sampler')
2936
2935
self.assertEquals(test_list, _test_ids(suite))
2938
2937
def test_exclude_tests(self):
2940
2939
loader = self._create_loader(test_list)
2942
2940
suite = loader.loadTestsFromModuleName('bzrlib.tests.test_sampler')
2943
2941
self.assertEquals([], _test_ids(suite))