DDG: add test

This commit is contained in:
Valentin Lorentz 2020-05-15 21:24:43 +02:00
parent 5e90044fab
commit 37c1fa2153

View File

@ -38,5 +38,9 @@ class DDGTestCase(PluginTestCase):
def testSearch(self):
self.assertRegexp(
'ddg search wikipedia', 'Wikipedia.*? - .*?https?\:\/\/')
self.assertRegexp(
'ddg search en.wikipedia.org',
'Wikipedia, the free encyclopedia\x02 - '
'.* <https://en.wikipedia.org/>')
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: