Added a new test for the OptionList stuff to check to see if parsing is working

as expected.
This commit is contained in:
Daniel DiPaolo 2003-11-13 22:02:33 +00:00
parent f3e2e2a1ed
commit 11da098db2
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ if sqlite is not None:
[['foo','bar','baz']])
self.assertEqual(MF.tokenize('(foo|(bar|baz))'),
[['foo', ['bar', 'baz']]])
self.assertEqual(MF.tokenize('(a|b (c|d))'),
[['a', ['b', ['c', 'd']]]])
class FactoidsTestCase(PluginTestCase, PluginDocumentation):
plugins = ('MoobotFactoids', 'User', 'Utilities')