Ejemplo n.º 1
0
 def test_similar(self):
     machine = WeblateSimilarTranslation()
     unit = Unit.objects.all()[0]
     results = machine.translate(unit.translation.language.code,
                                 unit.get_source_plurals()[0], unit,
                                 self.user)
     self.assertEqual(results, [])
Ejemplo n.º 2
0
 def test_similar(self):
     machine = WeblateSimilarTranslation()
     unit = Unit.objects.all()[0]
     results = machine.translate(
         unit.translation.language.code,
         unit.get_source_plurals()[0],
         unit,
         self.user
     )
     self.assertEqual(results, [])