def test_import_class(self): cls_string = "tests.unit.fakes.FakeManager" ret = utils.import_class(cls_string) self.assertTrue(ret is fakes.FakeManager)
def test_import_class(self): cls_string = "pyrax.utils.SelfDeletingTempfile" ret = utils.import_class(cls_string) self.assertTrue(ret is utils.SelfDeletingTempfile)