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

Fix dummy translation

parent 1e428789
......@@ -37,7 +37,7 @@ class DummyTranslation(MachineTranslation):
'''
Dummy translation supports just single phrase.
'''
if text.strip == 'Hello, world!':
if text.strip() == 'Hello, world!':
return [
'Nazdar světe!',
'Ahoj světe!',
......
......@@ -48,7 +48,7 @@ class MachineTranslationTest(TestCase):
)
self.assertEqual(
machine_translation.translate('cs', 'Hello, world!'),
[]
['Nazdar světe!', 'Ahoj světe!']
)
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