示例#1
0
 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))
示例#2
0
 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))
示例#3
0
 def test_fail_fuzzy(self):
     entry = POEntry(msgid="Source", msgstr="Translation", flags=['fuzzy'])
     status = Status()
     status.step(entry)
     self.assertFalse(fuzzy_validator(status))
示例#4
0
 def test_pass(self):
     entry = POEntry(msgid="Source", msgstr="Translation")
     status = Status()
     status.step(entry)
     self.assertTrue(fuzzy_validator(status))
示例#5
0
 def test_fail_fuzzy(self):
     entry = POEntry(msgid="Source", msgstr="Translation", flags=['fuzzy'])
     status = Status()
     status.step(entry)
     self.assertFalse(fuzzy_validator(status))
示例#6
0
 def test_pass(self):
     entry = POEntry(msgid="Source", msgstr="Translation")
     status = Status()
     status.step(entry)
     self.assertTrue(fuzzy_validator(status))