chiark / gitweb /
normalize tags and exercise this
[disorder] / tests / dump.py
index 2db150500e0223ee650223c2e2381119f423e6ba..f8f2074c924a96c37f228862040b687cf43c6e2e 100755 (executable)
@@ -34,11 +34,11 @@ def test():
     assert c.getglobal("foo") == "before", "checking global foo=before"
     print "adding a tag"
     # Exercise the tags-changed code
     assert c.getglobal("foo") == "before", "checking global foo=before"
     print "adding a tag"
     # Exercise the tags-changed code
-    c.set(track, "tags", "first tag, another tag")
+    c.set(track, "tags", "  first   tag, Another Tag")
     assert dtest.lists_have_same_contents(c.tags(),
                                           [u"another tag", u"first tag"]),\
            "checking tag list(1)"
     assert dtest.lists_have_same_contents(c.tags(),
                                           [u"another tag", u"first tag"]),\
            "checking tag list(1)"
-    c.set(track, "tags", "wibble, another tag")
+    c.set(track, "tags", "wibble,   another tag   ")
     assert dtest.lists_have_same_contents(c.tags(),
                                           [u"another tag", u"wibble"]),\
            "checking tag list(2)"
     assert dtest.lists_have_same_contents(c.tags(),
                                           [u"another tag", u"wibble"]),\
            "checking tag list(2)"