def test_package_resource(self):

        rm = ResourceManager()

        # Open a package resource.
        f = rm.file('pkgfile://envisage.resource/api.py')
        self.assertNotEqual(f, None)
        contents = f.read()
        f.close()

        # Get the filename of the 'api.py' file.
        filename = resource_filename('envisage.resource', 'api.py')

        # Open the api file via the file system.
        g = open(filename, 'rb')
        self.assertEqual(g.read(), contents)
        g.close()

        return
Gets the classpath products for the given targets.
dataset/ETHPy150Open enthought/envisage/envisage/resource/tests/resource_manager_test_case.py/ResourceManagerTestCase.test_package_resource--crossover with--dataset/ETHPy150Open pantsbuild/pants/src/python/pants/backend/jvm/tasks/classpath_products.py/ClasspathProducts.get_for_targets