def testImportModule(self): """Test module import.""" m = PythonEngine.ImportModule("sys") n = m.GetAttr("__name__") self.failUnless(n.AsManagedObject(System.String) == "sys")
def test_import_module(): """Test module import.""" m = PythonEngine.ImportModule("sys") n = m.GetAttr("__name__") assert n.AsManagedObject(System.String) == "sys"