def test_no_such_package_resource(self):

        rm = ResourceManager()

        # Open a package resource.
        self.assertRaises(
            NoSuchResourceError,
            rm.file,
            'pkgfile://envisage.resource/bogus.py'
        )

        self.assertRaises(
            NoSuchResourceError, rm.file, 'pkgfile://completely.bogus/bogus.py'
        )

        return
no such package resource
dataset/ETHPy150Open enthought/envisage/envisage/resource/tests/resource_manager_test_case.py/ResourceManagerTestCase.test_no_such_package_resource