mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
* Updating MoobotFactoids tests to include more tests (testGetFactoid)
This commit is contained in:
parent
cabfab3d0c
commit
27796b01a3
@ -51,6 +51,16 @@ if sqlite is not None:
|
|||||||
self.assertRegexp('literal moo', '<reply>foo')
|
self.assertRegexp('literal moo', '<reply>foo')
|
||||||
self.assertNotError('moo2 is moo!')
|
self.assertNotError('moo2 is moo!')
|
||||||
self.assertRegexp('literal moo2', 'moo!')
|
self.assertRegexp('literal moo2', 'moo!')
|
||||||
|
self.assertNotError('moo3 is <action>foo')
|
||||||
|
self.assertRegexp('literal moo3', '<action>foo')
|
||||||
|
|
||||||
|
def testGetFactoid(self):
|
||||||
|
self.assertNotError('moo is <reply>foo')
|
||||||
|
self.assertRegexp('moo', 'foo')
|
||||||
|
self.assertNotError('moo2 is moo!')
|
||||||
|
self.assertRegexp('moo2', 'moo2 is moo!')
|
||||||
|
self.assertNotError('moo3 is <action>foo')
|
||||||
|
self.assertAction('moo3', 'foo')
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
Loading…
Reference in New Issue
Block a user