TestSubission's tag check stuff passing now
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 26 Mar 2012 16:59:34 +0000 (11:59 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 26 Mar 2012 16:59:34 +0000 (11:59 -0500)
mediagoblin/tests/test_submission.py

index 1f56779e4cae0c202d24a65756691d0202a9ab54..788dfacf59878023343410dd5d258009e89a38d0 100644 (file)
@@ -140,9 +140,11 @@ class TestSubmission:
         context = template.TEMPLATE_TEST_CONTEXT['mediagoblin/user_pages/user.html']
         request = context['request']
         media = request.db.MediaEntry.find({'title': 'Balanced Goblin'})[0]
-        assert_equal(media.tags,
-                     [{'name': u'yin', 'slug': u'yin'},
-                                            {'name': u'yang', 'slug': u'yang'}])
+        assert media.tags[0]['name'] == u'yin'
+        assert media.tags[0]['slug'] == u'yin'
+
+        assert media.tags[1]['name'] == u'yang'
+        assert media.tags[1]['slug'] == u'yang'
 
         # Test tags that are too long
         # ---------------