Exemple #1
0
 def test_importer_module(self):
     """Testing importer.load: module"""
     mod = load("sys")
     assert mod == sys
Exemple #2
0
 def test_importer_path(self):
     """Testing importer.load: from path"""
     path = os.path.dirname(__file__)
     cl = load("test_importer", "TestImporter", path=[path])
     assert cl.__name__ == 'TestImporter'
Exemple #3
0
 def test_importer_default(self):
     """Testing importer.load: from standard library"""
     cl = load("unittest.main", "TestProgram")
     assert cl.__name__ == 'TestProgram'
Exemple #4
0
 def test_importer_module(self):
     """Testing importer.load: module"""
     mod = load("sys")
     assert mod == sys
Exemple #5
0
 def test_importer_path(self):
     """Testing importer.load: from path"""
     path = os.path.dirname(__file__)
     cl = load("test_importer", "TestImporter", path=[path])
     assert cl.__name__ == 'TestImporter'
Exemple #6
0
 def test_importer_default(self):
     """Testing importer.load: from standard library"""
     cl = load("unittest.main", "TestProgram")
     assert cl.__name__ == 'TestProgram'