diff --git a/ckanext/example_idatasetform/tests/test_example_idatasetform_plugin.py b/ckanext/example_idatasetform/tests/test_example_idatasetform_plugin.py index 2d158a3490b..14fd37f9832 100644 --- a/ckanext/example_idatasetform/tests/test_example_idatasetform_plugin.py +++ b/ckanext/example_idatasetform/tests/test_example_idatasetform_plugin.py @@ -82,7 +82,7 @@ def test_example_idatasetform_plugin(self): # Fill out the form and submit it, changing the country_code value. form = response.forms[1] - #form['tag_string'] = 'testing, idatasetform, test_update_tag' + form['tag_string'] = 'testing, idatasetform, test_update_tag' form['country_code'] = 'fr' response = form.submit('save', extra_environ=extra_environ) assert response.status == 302 @@ -97,9 +97,8 @@ def test_example_idatasetform_plugin(self): # FIXME: Tags aren't shown on the dataset read page, so check them # another way. # TODO: Also edit some other fields and check their values. - assert 'idatasetform' in response - assert 'testing' in response - assert 'test_update_tag' in response + for tag in ('test_update_tag', 'idatasetform', 'testing'): + assert 'href="/dataset?tags={0}"'.format(tag) in response # Fetch the dataset search page, just to test that the plugin's # search_template() method gets called.