Пример #1
0
 def test_same_source_language(self):
     unit = MockUnit(code="en")
     # Is template
     unit.translation.is_template = True
     unit.translation.is_source = True
     unit.is_source = True
     self.assertTrue(self.check.should_skip(unit))
     # Is same as source
     unit.translation.template = False
     self.assertTrue(self.check.should_skip(unit))
     # Interlingua special case
     unit.translation.language.code = "ia"
     self.assertTrue(self.check.should_skip(unit))