From e5a04aaf134dcb32856e782567be82270e2b6f12 Mon Sep 17 00:00:00 2001 From: Gordon Shumway Date: Mon, 6 Jul 2020 16:32:12 -0400 Subject: [PATCH] DDG: Add region test. --- plugins/DDG/test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/DDG/test.py b/plugins/DDG/test.py index ab1b293c5..4a03152ee 100644 --- a/plugins/DDG/test.py +++ b/plugins/DDG/test.py @@ -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 - ' '.* ') + 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: