"""Tests for plugin.py."""
import ckanext.romania_theme.plugin as plugin

def test_plugin():
    pass
@@ -1,101 +1,687 @@
-%22%22%22Tests f
+import webtest%0Aimport paste.fixture%0Aimp
 or
+t
  p
-lugin.py.%22%22%22%0Aimport ckanext.romania_theme.plugin as plugin%0A%0Adef test_plugin():%0A    pass
+ylons.test%0A%0Aimport ckan.model as model%0Aimport ckan.tests.helpers as helpers%0Aimport ckan.config%0Aimport ckan.plugins%0A%0A%0Aclass TestRomaniaTheme(helpers.FunctionalTestBase):%0A    @classmethod%0A    def setup_class(cls):%0A        cls.app = paste.fixture.TestApp(pylons.test.pylonsapp)%0A        ckan.plugins.load('romania_theme')%0A%0A    def teardown(self):%0A        model.repo.rebuild_db()%0A%0A    @classmethod%0A    def teardown_class(cls):%0A        ckan.plugins.unload('romania_theme')%0A%0A    def test_motto(self):%0A        response = self.app.get('/')%0A        motto = 'Date accesibile, reutilizabile, ce pot fi redistribuite'%0A        assert motto in response.body%0A

Add first test #11