mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Added some pickOptions tests
This commit is contained in:
parent
d4e5047ebf
commit
f8e920ef36
@ -46,6 +46,16 @@ if sqlite is not None:
|
||||
self.failUnless(MF.pickOptions('a') == 'a')
|
||||
self.failUnless(MF.pickOptions('(a|b (c|d))') in
|
||||
['a', 'b c', 'b d'])
|
||||
self.failUnless(MF.pickOptions('(a|(b|)c)') in
|
||||
['a', 'bc', 'c'])
|
||||
self.failUnless(MF.pickOptions('(a(b|)|(c|)d)') in
|
||||
['a', 'ab', 'cd', 'd'])
|
||||
self.failUnless(MF.pickOptions('(a|)') in
|
||||
['a', ''])
|
||||
self.failUnless(MF.pickOptions('(|a)') in
|
||||
['a', ''])
|
||||
self.failUnless(MF.pickOptions('((a)|(b))') in
|
||||
['(a)', '(b)'])
|
||||
|
||||
class FactoidsTestCase(PluginTestCase, PluginDocumentation):
|
||||
plugins = ('MoobotFactoids', 'User', 'Utilities')
|
||||
|
Loading…
Reference in New Issue
Block a user