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

Some basic check for correct saving of new translations

parent 678a59a8
......@@ -179,6 +179,8 @@ class EditTest(ViewTestCase):
unit = self.translation.unit_set.get(source='Hello, world!\n')
self.assertEqual(unit.target, 'Nazdar svete!\n')
self.assertEqual(len(unit.checks()), 0)
self.assertTrue(unit.translated)
self.assertFalse(unit.fuzzy)
def test_edit_check(self):
response = self.edit_unit(
......
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