Esempio n. 1
0
 def test_translate(self):
     machine_translation = DummyTranslation()
     self.assertEqual(
         machine_translation.translate('cs', 'Hello', None),
         []
     )
     self.assertEqual(
         len(machine_translation.translate('cs', 'Hello, world!', None)),
         2
     )
Esempio n. 2
0
 def test_translate(self):
     machine_translation = DummyTranslation()
     self.assertEqual(machine_translation.translate('cs', 'Hello', None),
                      [])
     self.assertEqual(
         len(machine_translation.translate('cs', 'Hello, world!', None)), 2)
Esempio n. 3
0
 def test_support(self):
     machine_translation = DummyTranslation()
     self.assertTrue(machine_translation.is_supported('cs'))
     self.assertFalse(machine_translation.is_supported('de'))
Esempio n. 4
0
 def test_support(self):
     machine_translation = DummyTranslation()
     self.assertTrue(machine_translation.is_supported('cs'))
     self.assertFalse(machine_translation.is_supported('de'))