mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Added tests for the babelfish commands (translate, babelize, randomlanguage).
This commit is contained in:
parent
710dcd71c6
commit
f3af416c0a
@ -48,6 +48,19 @@ class HttpTest(PluginTestCase):
|
||||
self.assertResponse('title http://www.slashdot.org/',
|
||||
'Slashdot: News for nerds, stuff that matters')
|
||||
|
||||
def testTranslate(self):
|
||||
self.assertResponse('translate en sp food',
|
||||
'alimento')
|
||||
self.assertError('translate foo en food')
|
||||
self.assertError('translate en foo food')
|
||||
|
||||
def testBabelize(self):
|
||||
self.assertNotError('babelize en sp foo')
|
||||
self.assertError('translate sp fr foo')
|
||||
|
||||
def testRandomlanguage(self):
|
||||
self.assertNotError('randomlanguage')
|
||||
|
||||
def testFoldoc(self):
|
||||
self.assertNotError('foldoc perl')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user