X-Git-Url: http://gitweb.fperrin.net/?p=djsite.git;a=blobdiff_plain;f=quotes%2Ftest_quotes.py;h=b4c79159cd911f2db112b1021ec7599489f58c7f;hp=ac53979f936f3214cf15adacdcc13c30e682d4e3;hb=5a0c0284b85a13255f86513565d145ebecfa9637;hpb=bb8b5bd36c5f921ba31635bb858db3d4788ef0e9 diff --git a/quotes/test_quotes.py b/quotes/test_quotes.py index ac53979..b4c7915 100644 --- a/quotes/test_quotes.py +++ b/quotes/test_quotes.py @@ -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="

Quote02, no tags

", work=w2) - assert len(q2.tags.all()) == 0 + assert q2.tags.all().count() == 0 def test_all(self, c): content = c.getPage('all/')