mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-02 07:59:32 +01:00
Aka, Google, String: fix more DeprecationWarning in tests (#1328)
This commit is contained in:
parent
358c3a741f
commit
4528a847e4
@ -267,9 +267,9 @@ class AkaTestCase(PluginTestCase):
|
|||||||
|
|
||||||
def testList(self):
|
def testList(self):
|
||||||
self.assertNotError('aka add foo bar')
|
self.assertNotError('aka add foo bar')
|
||||||
self.assertRegexp('aka list', 'foo.*?bar \$\*')
|
self.assertRegexp('aka list', r'foo.*?bar \$\*')
|
||||||
self.assertNotError('aka add "foo bar" baz')
|
self.assertNotError('aka add "foo bar" baz')
|
||||||
self.assertRegexp('aka list', 'foo.*?bar \$\*.*?foo bar.*?baz \$\*')
|
self.assertRegexp('aka list', r'foo.*?bar \$\*.*?foo bar.*?baz \$\*')
|
||||||
|
|
||||||
def testListLockedUnlocked(self):
|
def testListLockedUnlocked(self):
|
||||||
self.assertNotError('register tacocat hunter2')
|
self.assertNotError('register tacocat hunter2')
|
||||||
|
@ -58,7 +58,7 @@ class GoogleTestCase(ChannelPluginTestCase):
|
|||||||
self.assertRegexp(
|
self.assertRegexp(
|
||||||
'google site:http://www.urbandictionary.com carajo land',
|
'google site:http://www.urbandictionary.com carajo land',
|
||||||
'\x02Urban Dictionary: carajo land\x02: '
|
'\x02Urban Dictionary: carajo land\x02: '
|
||||||
'https?://www.urbandictionary.com/define.php\?term=carajo%20land')
|
r'https?://www.urbandictionary.com/define.php\?term=carajo%20land')
|
||||||
|
|
||||||
def testLucky(self):
|
def testLucky(self):
|
||||||
self.assertResponse('lucky Hacker News',
|
self.assertResponse('lucky Hacker News',
|
||||||
|
@ -130,7 +130,7 @@ class StringTestCase(PluginTestCase):
|
|||||||
self.assertNotRegexp('re foo bar baz', 'unpack list of wrong size')
|
self.assertNotRegexp('re foo bar baz', 'unpack list of wrong size')
|
||||||
|
|
||||||
def testReBug850931(self):
|
def testReBug850931(self):
|
||||||
self.assertResponse('re s/\b(\w+)\b/\1./g foo bar baz',
|
self.assertResponse(r're s/\b(\w+)\b/\1./g foo bar baz',
|
||||||
'foo. bar. baz.')
|
'foo. bar. baz.')
|
||||||
|
|
||||||
def testNotOverlongRe(self):
|
def testNotOverlongRe(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user