Example #1
0
 def test_msgctxt_both(self):
     first = POEntry(msgid="First", msgstr="Trans.", msgctxt="abbrev.")
     second = POEntry(msgid="First", msgstr="Translation", msgctxt="long")
     status = Status()
     status.step(first)
     status.step(second)
     self.assertTrue(sort_validator(status))
Example #2
0
 def test_unsorted(self):
     first = POEntry(msgid="Second", msgstr="Translation")
     second = POEntry(msgid="First", msgstr="Translation")
     status = Status()
     status.step(first)
     status.step(second)
     self.assertFalse(sort_validator(status))
Example #3
0
 def test_unsorted(self):
     first = POEntry(msgid="Second", msgstr="Translation")
     second = POEntry(msgid="First", msgstr="Translation")
     status = Status()
     status.step(first)
     status.step(second)
     self.assertFalse(sort_validator(status))
Example #4
0
 def test_msgctxt_both(self):
     first = POEntry(msgid="First", msgstr="Trans.", msgctxt="abbrev.")
     second = POEntry(msgid="First", msgstr="Translation", msgctxt="long")
     status = Status()
     status.step(first)
     status.step(second)
     self.assertTrue(sort_validator(status))
Example #5
0
 def test_first_entry(self):
     entry = POEntry(msgid="Source", msgstr="Translation")
     status = Status()
     status.step(entry)
     self.assertTrue(sort_validator(status))
Example #6
0
 def test_first_entry(self):
     entry = POEntry(msgid="Source", msgstr="Translation")
     status = Status()
     status.step(entry)
     self.assertTrue(sort_validator(status))