コード例 #1
0
 def testModulePath(self): #{{{
     '''Import sub-module'''
     from smanstal.types import module
     self.assertTrue(modpathmod('smanstal.types.module') is module)
コード例 #2
0
 def testRootPackage(self): #{{{
     '''Import root package'''
     import smanstal
     self.assertTrue(modpathmod('smanstal') is smanstal)
コード例 #3
0
 def testPackagePath(self): #{{{
     '''Import sub-package'''
     import smanstal.types as st
     self.assertTrue(modpathmod('smanstal.types') is st)
コード例 #4
0
 def testNone(self): #{{{
     '''Passing None returns None'''
     self.assertTrue(not modpathmod(None))
     self.assertTrue(not modpathmod(''))