def test_if_it_is_not_a_subclass_of_base_finder(self): with self.assertRaises(ImproperlyConfigured): get_finder('test_get_finder.finders.BadFinder')
def test_if_it_is_a_subclass_of_base_finder(self): finder = get_finder('test_get_finder.finders.GoodFinder') self.assertIsInstance(finder, finders.GoodFinder)