def test_remove_non_existent_listener(self):

        registry = self.registry

        def listener(registry, extension_point, added, removed, index):
            """ Called when an extension point has changed. """

            self.listener_called = (registry, extension_point, added, removed)

            return

        self.failUnlessRaises(
            ValueError, registry.remove_extension_point_listener, listener
        )

        return
Test for 'rm -r' of a bucket.
dataset/ETHPy150Open enthought/envisage/envisage/tests/extension_registry_test_case.py/ExtensionRegistryTestCase.test_remove_non_existent_listener--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_rm.py/TestRm.test_recursive_bucket_rm