mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
DDG: Add region test.
This commit is contained in:
parent
1c1ba1119d
commit
e5a04aaf13
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
|
import supybot.conf as conf
|
||||||
from supybot.test import *
|
from supybot.test import *
|
||||||
|
|
||||||
class DDGTestCase(PluginTestCase):
|
class DDGTestCase(PluginTestCase):
|
||||||
@ -42,5 +43,9 @@ class DDGTestCase(PluginTestCase):
|
|||||||
'ddg search en.wikipedia.org',
|
'ddg search en.wikipedia.org',
|
||||||
'Wikipedia, the free encyclopedia\x02 - '
|
'Wikipedia, the free encyclopedia\x02 - '
|
||||||
'.* <https://en.wikipedia.org/>')
|
'.* <https://en.wikipedia.org/>')
|
||||||
|
with conf.supybot.plugins.DDG.region.context('fr-fr'):
|
||||||
|
self.assertRegexp(
|
||||||
|
'ddg search wikipedia',
|
||||||
|
'Wikipédia, l\'encyclopédie libre - .*?https?\:\/\/')
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
||||||
|
Loading…
Reference in New Issue
Block a user