Commit 8a784f36 authored by Michal Čihař's avatar Michal Čihař

Add test for language pages

parent d1dc5257
......@@ -682,3 +682,16 @@ class CommentViewTest(ViewTestCase):
translation.unit_set.count_type('sourcecomments', translation),
1
)
class LanguagesViewTest(ViewTestCase):
def test_languages(self):
response = self.client.get(reverse('languages'))
self.assertContains(response, 'Czech')
response = self.client.get(reverse(
'show_language',
kwargs={'lang': 'cs'}
))
self.assertContains(response, 'Czech')
self.assertContains(response, 'Test/Test')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment