Example #1
0
 def test_loader_loads_subclass(self):
     result = load(TestTargetClass, TestTargetSuperClass)
     self.assertEqual(result.__class__, TestTargetClass)
Example #2
0
 def test_loader_loads_subclass(self):
     result = load(TestTargetClass, TestTargetSuperClass)
     self.assertEqual(result.__class__, TestTargetClass)
Example #3
0
 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)
Example #4
0
 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)