def testNonFileModule(self):  # {{{
     """Non-file module returns False"""
     mod = module("testmod")
     self.assertFalse(isfilemodule(mod))
 def testPythonObject(self):  # {{{
     """Arbitrary python object returns False"""
     self.assertFalse(isfilemodule(1))
 def testFileModule(self):  # {{{
     """Module created from a file returns True"""
     self.assertTrue(isfilemodule(re))