summaryrefslogtreecommitdiffstats
path: root/hyperkitty/tests
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-06-06 20:32:30 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-06-06 20:32:38 +0200
commit778cc234485fb11c3e50c60e05600f28a2de3e0f (patch)
tree14bd2029c5e70f53bd0cbd050eb490d5289dbbf3 /hyperkitty/tests
parent0ec6500cb00490433b2759eb6097302575c7478b (diff)
downloadhyperkitty-778cc234485fb11c3e50c60e05600f28a2de3e0f.tar.gz
hyperkitty-778cc234485fb11c3e50c60e05600f28a2de3e0f.tar.xz
hyperkitty-778cc234485fb11c3e50c60e05600f28a2de3e0f.zip
Fix a test broken by commit fcdaa7f3
Diffstat (limited to 'hyperkitty/tests')
-rw-r--r--hyperkitty/tests/test_views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/hyperkitty/tests/test_views.py b/hyperkitty/tests/test_views.py
index 3cb6902..e9822f2 100644
--- a/hyperkitty/tests/test_views.py
+++ b/hyperkitty/tests/test_views.py
@@ -145,9 +145,10 @@ class LastViewsTestCase(TestCase):
request.user = self.user
response = thread_index(request, "list@example.com", threadid)
responses.append(response)
- self.assertContains(responses[0], "icon-eye-close", count=1, status_code=200)
- self.assertNotContains(responses[1], "icon-eye-close", status_code=200)
- self.assertContains(responses[2], "icon-eye-close", count=1, status_code=200)
+ # There's always one icon in the right column, so all counts are +1
+ self.assertContains(responses[0], "icon-eye-close", count=2, status_code=200)
+ self.assertContains(responses[1], "icon-eye-close", count=1, status_code=200)
+ self.assertContains(responses[2], "icon-eye-close", count=2, status_code=200)
def test_thread_list(self):
now = datetime.datetime.now()