mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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 *
|
||||
|
||||
class DDGTestCase(PluginTestCase):
|
||||
@ -42,5 +43,9 @@ class DDGTestCase(PluginTestCase):
|
||||
'ddg search en.wikipedia.org',
|
||||
'Wikipedia, the free encyclopedia\x02 - '
|
||||
'.* <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:
|
||||
|
Loading…
Reference in New Issue
Block a user