def test_add_extension_point(self):

        registry = self.registry

        # Add an extension *point*.
        registry.add_extension_point(self._create_extension_point('my.ep'))

        # Make sure there's NO extensions.
        extensions = registry.get_extensions('my.ep')
        self.assertEqual(0, len(extensions))

        # Make sure there's one and only one extension point.
        extension_points = registry.get_extension_points()
        self.assertEqual(1, len(extension_points))
        self.assertEqual('my.ep', extension_points[0].id)

        return
add extension point
dataset/ETHPy150Open enthought/envisage/envisage/tests/extension_registry_test_case.py/ExtensionRegistryTestCase.test_add_extension_point