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

Test handling of offset in zen mode

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 51f31459
......@@ -825,6 +825,28 @@ class ZenViewTest(ViewTestCase):
'You have reached end of translating.'
)
def test_load_zen_offset(self):
response = self.client.get(
reverse('load_zen', kwargs=self.kw_translation),
{'offset': '1'}
)
self.assertNotContains(
response,
'Hello, world'
)
self.assertContains(
response,
'Orangutan has %d bananas'
)
response = self.client.get(
reverse('load_zen', kwargs=self.kw_translation),
{'offset': 'bug'}
)
self.assertContains(
response,
'Hello, world'
)
def test_save_zen(self):
unit = self.get_unit()
params = {
......
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