def test_fail_multiple_flags(self): entry = POEntry(msgid="Source", msgstr="Translation", flags=['another', 'fuzzy', 'flag']) status = Status() status.step(entry) self.assertFalse(fuzzy_validator(status))
def test_fail_fuzzy(self): entry = POEntry(msgid="Source", msgstr="Translation", flags=['fuzzy']) status = Status() status.step(entry) self.assertFalse(fuzzy_validator(status))
def test_pass(self): entry = POEntry(msgid="Source", msgstr="Translation") status = Status() status.step(entry) self.assertTrue(fuzzy_validator(status))