mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fixed MoobotFactoids tests to jive with new "glob by default" behavior.
This commit is contained in:
parent
ec7644fd2f
commit
86b633cfe6
@ -131,7 +131,7 @@ if sqlite is not None:
|
|||||||
self.assertError('moo =~ s/moo/')
|
self.assertError('moo =~ s/moo/')
|
||||||
|
|
||||||
def testListkeys(self):
|
def testListkeys(self):
|
||||||
self.assertResponse('listkeys *', 'No keys matching \'*\' found.')
|
self.assertResponse('listkeys %', 'No keys matching \'%\' found.')
|
||||||
self.assertNotError('moo is <reply>moo')
|
self.assertNotError('moo is <reply>moo')
|
||||||
self.assertResponse('listkeys moo', 'Key search for \'moo\' '
|
self.assertResponse('listkeys moo', 'Key search for \'moo\' '
|
||||||
'(1 found): \'moo\'')
|
'(1 found): \'moo\'')
|
||||||
@ -140,15 +140,15 @@ if sqlite is not None:
|
|||||||
# Throw in a bunch more
|
# Throw in a bunch more
|
||||||
for i in range(10):
|
for i in range(10):
|
||||||
self.assertNotError('moo%s is <reply>moo' % i)
|
self.assertNotError('moo%s is <reply>moo' % i)
|
||||||
self.assertRegexp('listkeys moo*', '^Key search for \'moo\*\' '
|
self.assertRegexp('listkeys moo', '^Key search for \'moo\' '
|
||||||
'\(11 found\): (\'moo\d*\', )+and \'moo9\'$')
|
'\(11 found\): (\'moo\d*\', )+and \'moo9\'$')
|
||||||
self.assertNotError('foo is bar')
|
self.assertNotError('foo is bar')
|
||||||
self.assertRegexp('listkeys *', '^Key search for \'\*\' '
|
self.assertRegexp('listkeys %', '^Key search for \'\%\' '
|
||||||
'\(12 found\): \'foo\', (\'moo\d*\', )+and '
|
'\(12 found\): \'foo\', (\'moo\d*\', )+and '
|
||||||
'\'moo9\'$')
|
'\'moo9\'$')
|
||||||
# Check quoting
|
# Check quoting
|
||||||
self.assertNotError('foo\' is bar')
|
self.assertNotError('foo\' is bar')
|
||||||
self.assertResponse('listkeys foo*', 'Key search for \'foo*\' '
|
self.assertResponse('listkeys foo', 'Key search for \'foo\' '
|
||||||
'(2 found): \'foo\' and "foo\'"')
|
'(2 found): \'foo\' and "foo\'"')
|
||||||
|
|
||||||
def testListvalues(self):
|
def testListvalues(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user