def testModulePath(self): #{{{ '''Import sub-module''' from smanstal.types import module self.assertTrue(modpathmod('smanstal.types.module') is module)
def testRootPackage(self): #{{{ '''Import root package''' import smanstal self.assertTrue(modpathmod('smanstal') is smanstal)
def testPackagePath(self): #{{{ '''Import sub-package''' import smanstal.types as st self.assertTrue(modpathmod('smanstal.types') is st)
def testNone(self): #{{{ '''Passing None returns None''' self.assertTrue(not modpathmod(None)) self.assertTrue(not modpathmod(''))