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))
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))
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))
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))
def test_first_entry(self): entry = POEntry(msgid="Source", msgstr="Translation") status = Status() status.step(entry) self.assertTrue(sort_validator(status))
def test_first_entry(self): entry = POEntry(msgid="Source", msgstr="Translation") status = Status() status.step(entry) self.assertTrue(sort_validator(status))