vary template cache on language
[wolnelektury.git] / src / catalogue / tests / visit.py
index cab3c98..5e640ad 100644 (file)
@@ -43,9 +43,8 @@ class VisitTest(WLTestCase):
                 'lektura/a-book/motyw/theme/',
                 'motyw/theme/',
                 'autor/jane-doe/',
-                'autor/jane-doe/gatunek/genre/',
-                'autor/jane-doe/gatunek/genre/motyw/theme/',
-                'pl.json',
+                # 'autor/jane-doe/gatunek/genre/',
+                # 'autor/jane-doe/gatunek/genre/motyw/theme/',
                 'b/%d/mini.pl.html' % self.book.pk,
                 'b/%d/mini_nolink.pl.html' % self.book.pk,
                 'b/%d/short.pl.html' % self.book.pk,
@@ -75,6 +74,6 @@ class VisitTest(WLTestCase):
             for url in urls:
                 print(url)
                 status = self.client.get(prefix + url).status_code
-                self.assertEqual(status, expected_status,
-                    "Wrong status code for '%s'. Expected %d, got %d." % (
-                        prefix + url, expected_status, status))
+                self.assertEqual(
+                    status, expected_status,
+                    "Wrong status code for '%s'. Expected %d, got %d." % (prefix + url, expected_status, status))