def testDynamicModule(self): #{{{ '''Dynamic module returns itself''' import new m = new.module('boo') self.assertTrue(rootpackage(m) is m)
def testPythonModule(self): #{{{ '''Python module returns root package''' from smanstal.types import module import smanstal self.assertTrue(rootpackage(module) is smanstal)
def testRootPackage(self): #{{{ '''Root package returns itself''' import smanstal self.assertTrue(rootpackage(smanstal) is smanstal)
def testPythonPackage(self): #{{{ '''Python package returns root package''' import smanstal.types as st import smanstal self.assertTrue(rootpackage(st) is smanstal)