Updating tests to reflect not having a 'tags_case_sensitive' option.

I should probably update the tags of things when I change them.
This commit is contained in:
Christopher Allan Webber 2011-07-30 22:15:54 -05:00
parent 1b89b817e5
commit bc0b10d177

View File

@ -28,13 +28,6 @@ def test_list_of_dicts_conversion(test_app):
function performs the reverse operation when populating a form to edit tags.
"""
# Leading, trailing, and internal whitespace should be removed and slugified
assert util.convert_to_tag_list_of_dicts('sleep , 6 AM, chainsaw! ') == [
{'name': u'sleep', 'slug': u'sleep'},
{'name': u'6 am', 'slug': u'6-am'},
{'name': u'chainsaw!', 'slug': u'chainsaw'}]
# Make sure case-sensitivity is retained when desired
mg_globals.app_config['tags_case_sensitive'] = True
assert util.convert_to_tag_list_of_dicts('sleep , 6 AM, chainsaw! ') == [
{'name': u'sleep', 'slug': u'sleep'},
{'name': u'6 AM', 'slug': u'6-am'},