@@ -0,0 +1,1342 @@
+from mock import MagicMock%0Afrom pylons import config%0A%0Afrom ckanext.orgdashboards import plugin%0A%0A%0Aclass TestPlugin():%0A%0A    @classmethod%0A    def setup_class(self, **kwargs):%0A        # Create the plugin%0A        self._plugin = plugin.OrgDashboardsPlugin()%0A%0A    def test_before_map(self):%0A        mapper = MagicMock()%0A%0A        self._plugin.before_map(mapper)%0A%0A        organization_entity_name = config.get(%0A            'ckanext.orgdashboards.organization_entity_name',%0A            'organization')%0A%0A        ctrl =%5C%0A            'ckanext.orgdashboards.controllers.dashboard:DashboardsController'%0A%0A        # Check that the mapper has been called correctly%0A        mapper.connect.assert_called_with(%0A            '/' + organization_entity_name + '/%7Bname%7D/dashboard',%0A            controller=ctrl,%0A            action='organization_dashboard')%0A%0A    def test_is_fallback(self):%0A        is_fallback = self._plugin.is_fallback()%0A%0A        assert is_fallback is False%0A%0A    def test_group_types(self):%0A        group_types = self._plugin.group_types()%0A%0A        assert group_types == %5B'organization'%5D%0A%0A    def test_form_to_db_schema_options(self):%0A        options = MagicMock()%0A%0A        self._plugin.form_to_db_schema_options(options)%0A%0A        options.get.assert_called_with('context', %7B%7D)%0A        options.get('context', %7B%7D).get.assert_called_with('schema', None)%0A

Add tests for plugin