コード例 #1
0
ファイル: test_utils.py プロジェクト: naterh/pyrax
 def test_import_class(self):
     cls_string = "tests.unit.fakes.FakeManager"
     ret = utils.import_class(cls_string)
     self.assertTrue(ret is fakes.FakeManager)
コード例 #2
0
 def test_import_class(self):
     cls_string = "pyrax.utils.SelfDeletingTempfile"
     ret = utils.import_class(cls_string)
     self.assertTrue(ret is utils.SelfDeletingTempfile)
コード例 #3
0
 def test_import_class(self):
     cls_string = "tests.unit.fakes.FakeManager"
     ret = utils.import_class(cls_string)
     self.assertTrue(ret is fakes.FakeManager)
コード例 #4
0
ファイル: test_utils.py プロジェクト: CarlFK/pyrax
 def test_import_class(self):
     cls_string = "pyrax.utils.SelfDeletingTempfile"
     ret = utils.import_class(cls_string)
     self.assertTrue(ret is utils.SelfDeletingTempfile)