fix test assertation

This commit is contained in:
Matthias 2021-11-20 21:10:20 +01:00
parent d17af9eae7
commit 2f739bfbfa
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -83,7 +83,7 @@ class PluginTagTests(TestCase):
def test_tag_safe_url(self):
"""test that the safe url tag works expected"""
# right url
self.assertEqual(plugin_tags.safe_url('index'), '/index')
self.assertEqual(plugin_tags.safe_url('api-plugin-install'), '/api/plugin/install/')
# wrong url
self.assertEqual(plugin_tags.safe_url('indexas'), None)