def test_loader_loads_subclass(self): result = load(TestTargetClass, TestTargetSuperClass) self.assertEqual(result.__class__, TestTargetClass)
def test_loader_loads_strings_properly(self): target = 'filer.tests.utils.TestTargetClass' result = load(target, None) # Should return an instance self.assertEqual(result.__class__, TestTargetClass)