diff options
Diffstat (limited to 'mediagoblin/tests')
-rw-r--r-- | mediagoblin/tests/test_tags.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mediagoblin/tests/test_tags.py b/mediagoblin/tests/test_tags.py index e25cc283..8358b052 100644 --- a/mediagoblin/tests/test_tags.py +++ b/mediagoblin/tests/test_tags.py @@ -33,6 +33,10 @@ def test_list_of_dicts_conversion(test_app): assert text.convert_to_tag_list_of_dicts('echo,echo') == [{'name': u'echo', 'slug': u'echo'}] + # When checking for duplicates, use the slug, not the tag + assert text.convert_to_tag_list_of_dicts('echo,#echo') == [{'name': u'#echo', + 'slug': u'echo'}] + # Make sure converting the list of dicts to a string works assert text.media_tags_as_string([{'name': u'yin', 'slug': u'yin'}, {'name': u'yang', 'slug': u'yang'}]) == \ |