'Will filter the found modules excluding the modules listed in
L{twisted.python.dist3}.'

def test_find_package_modules(self):

    distribution = Distribution()
    distribution.script_name = 'setup.py'
    distribution.script_args = 'build_py'
    builder = BuildPy3(distribution)
    self.patch(_setup, 'notPortedModules', ['twisted.spread.test.test_pbfailure'])
    twistedPackageDir = filepath.FilePath(twisted.__file__).parent()
    packageDir = twistedPackageDir.child('spread').child('test')
    result = builder.find_package_modules('twisted.spread.test', packageDir.path)
    self.assertEqual(sorted([('twisted.spread.test', '__init__', packageDir.child('__init__.py').path), ('twisted.spread.test', 'test_banana', packageDir.child('test_banana.py').path), ('twisted.spread.test', 'test_jelly', packageDir.child('test_jelly.py').path), ('twisted.spread.test', 'test_pb', packageDir.child('test_pb.py').path)]), sorted(result))
