Ejemplo n.º 1
0
 def test_importer_module(self):
     """Testing importer.load: module"""
     mod = load("sys")
     assert mod == sys
Ejemplo n.º 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'
Ejemplo n.º 3
0
 def test_importer_default(self):
     """Testing importer.load: from standard library"""
     cl = load("unittest.main", "TestProgram")
     assert cl.__name__ == 'TestProgram'
Ejemplo n.º 4
0
 def test_importer_module(self):
     """Testing importer.load: module"""
     mod = load("sys")
     assert mod == sys
Ejemplo n.º 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'
Ejemplo n.º 6
0
 def test_importer_default(self):
     """Testing importer.load: from standard library"""
     cl = load("unittest.main", "TestProgram")
     assert cl.__name__ == 'TestProgram'