]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/test_quotes.py
Simplify import
[djsite.git] / quotes / test_quotes.py
index ac53979f936f3214cf15adacdcc13c30e682d4e3..b4c79159cd911f2db112b1021ec7599489f58c7f 100644 (file)
@@ -37,7 +37,7 @@ class Test_Views():
         a2 = Author.objects.create(name="Author without notes")
         w2 = Work.objects.create(name="Work without notes", author=a2)
         q2 = Quote.objects.create(text="<p>Quote02, no tags</p>", work=w2)
-        assert len(q2.tags.all()) == 0
+        assert q2.tags.all().count() == 0
 
     def test_all(self, c):
         content = c.getPage('all/')