summaryrefslogtreecommitdiffstats
path: root/hyperkitty/tests
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-07-15 11:39:45 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-07-15 11:39:45 +0200
commit1a339ac1f7dac6e63b83864b6421aed1b0fdde75 (patch)
tree36e547489dee3ba3e192dd5c3254dab3bec03e9d /hyperkitty/tests
parent6c60d43903503d01173098c456211e79a318221e (diff)
downloadhyperkitty-1a339ac1f7dac6e63b83864b6421aed1b0fdde75.tar.gz
hyperkitty-1a339ac1f7dac6e63b83864b6421aed1b0fdde75.tar.xz
hyperkitty-1a339ac1f7dac6e63b83864b6421aed1b0fdde75.zip
Show the unread icon in the overview page
Diffstat (limited to 'hyperkitty/tests')
-rw-r--r--hyperkitty/tests/test_views.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/hyperkitty/tests/test_views.py b/hyperkitty/tests/test_views.py
index b1ad38a..fb7945d 100644
--- a/hyperkitty/tests/test_views.py
+++ b/hyperkitty/tests/test_views.py
@@ -146,6 +146,14 @@ class LastViewsTestCase(TestCase):
self.assertContains(response, "icon-eye-close",
count=2, status_code=200)
+ def test_overview(self):
+ now = datetime.datetime.now()
+ request = self.factory.get(reverse('list_overview', args=["list@example.com"]))
+ request.user = self.user
+ response = archives(request, "list@example.com", now.year, now.month)
+ self.assertContains(response, "icon-eye-close",
+ count=2, status_code=200)
+
from hyperkitty.views.message import vote