'The C{__file__} attribute of the module should match the package name.'

def test_filenameMatchesPackage(self):

    filename = filepath.FilePath(self.parent).child('goodpackage.py')
    filename.setContent(packages.testModule.encode('utf8'))
    try:
        module = runner.filenameToModule(filename.path)
        self.assertEqual(filename.path, module.__file__)
    finally:
        filename.remove()
