'If passed the path to a directory which represents a package which
is not on the import path, L{runner.filenameToModule} returns a
module object loosely resembling the package defined by that
directory anyway.'

def test_packageNotInPath(self):

    self.addCleanup(sys.modules.pop, '__init__')
    self.mangleSysPath(self.oldPath)
    package1 = runner.filenameToModule(os.path.join(self.parent, 'goodpackage'))
    self.mangleSysPath(self.newPath)
    import goodpackage
    self.assertEqual(os.path.splitext(goodpackage.__file__)[0], os.path.splitext(package1.__file__)[0])
