summaryrefslogtreecommitdiffstats
path: root/hyperkitty/tests
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-05-27 20:52:03 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-05-27 21:18:29 +0200
commitdad66ad5a2c8a9645e0127e09283082f3c439a28 (patch)
treea345405f0d4228b246f4b6dce3d00dcda1e06d91 /hyperkitty/tests
parent2a84b82a17e6986b3265d958f89d562c241a7a80 (diff)
downloadhyperkitty-dad66ad5a2c8a9645e0127e09283082f3c439a28.tar.gz
hyperkitty-dad66ad5a2c8a9645e0127e09283082f3c439a28.tar.xz
hyperkitty-dad66ad5a2c8a9645e0127e09283082f3c439a28.zip
Rework the display of email datetimes using timezones
Diffstat (limited to 'hyperkitty/tests')
-rw-r--r--hyperkitty/tests/test_views.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/hyperkitty/tests/test_views.py b/hyperkitty/tests/test_views.py
index 9deab94..ec34c08 100644
--- a/hyperkitty/tests/test_views.py
+++ b/hyperkitty/tests/test_views.py
@@ -88,6 +88,7 @@ class AccountViewsTestCase(TestCase):
from hyperkitty.views.accounts import last_views
from hyperkitty.views.thread import thread_index
+from hyperkitty.views.list import archives
@override_settings(DEBUG=True, ASSETS_DEBUG=True)
class LastViewsTestCase(TestCase):
@@ -148,6 +149,14 @@ class LastViewsTestCase(TestCase):
self.assertNotContains(responses[1], "icon-eye-close", status_code=200)
self.assertContains(responses[2], "icon-eye-close", count=1, status_code=200)
+ def test_thread_list(self):
+ now = datetime.datetime.now()
+ request = self.factory.get(reverse('archives_with_month', args=["list@example.com", now.year, now.month]))
+ 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