Commit b813f0af authored by Michal Čihař's avatar Michal Čihař

Fix dummy translation

parent 1e428789
...@@ -37,7 +37,7 @@ class DummyTranslation(MachineTranslation): ...@@ -37,7 +37,7 @@ class DummyTranslation(MachineTranslation):
''' '''
Dummy translation supports just single phrase. Dummy translation supports just single phrase.
''' '''
if text.strip == 'Hello, world!': if text.strip() == 'Hello, world!':
return [ return [
'Nazdar světe!', 'Nazdar světe!',
'Ahoj světe!', 'Ahoj světe!',
......
...@@ -48,7 +48,7 @@ class MachineTranslationTest(TestCase): ...@@ -48,7 +48,7 @@ class MachineTranslationTest(TestCase):
) )
self.assertEqual( self.assertEqual(
machine_translation.translate('cs', 'Hello, world!'), machine_translation.translate('cs', 'Hello, world!'),
[] ['Nazdar světe!', 'Ahoj světe!']
) )
def test_glosbe(self): def test_glosbe(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment