]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/tests.py
Add a pyflakes check, and fix the warnings
[djsite.git] / quotes / tests.py
index fe7e0a80456ac99edd9adbe959ecb4dce352e7a5..66ff00b946b8500a034412e020f80b85fce940ad 100644 (file)
@@ -9,11 +9,13 @@ class QuoteTest(TestCase):
         a1 = Author.objects.create(name="JFK")
         w1 = Work.objects.create(name="Berlin speech", author=a1)
         q1 = Quote.objects.create(text="Ich bin...", work=w1)
+        self.q1 = q1
 
     def test_one(self):
         q = Quote.objects.filter(text__startswith="Ich")
         self.assertEqual(q.count(), 1)
         q = q[0]
+        self.assertEqual(q, self.q1)
         self.assertEqual(q.work.author.name, "JFK")
 
 class ViewsTest(TestCase):