Commit f1499d4a authored by Michal Čihař's avatar Michal Čihař

Test for getting source string details

parent f4e37003
......@@ -46,6 +46,17 @@ class JSViewsTest(ViewTestCase):
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, '')
def test_get_detail(self):
unit = self.get_unit()
response = self.client.get(
reverse('js-detail', kwargs={
'checksum': unit.checksum,
'subproject': unit.translation.subproject.slug,
'project': unit.translation.subproject.project.slug,
}),
)
self.assertContains(response, 'Czech')
def test_translate(self):
unit = self.get_unit()
response = self.client.get(
......
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