blob: 8bc4c67c2180d1581dd4db46a2a3fd8ff6649c93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
from collections import defaultdict
import mock
from searx.engines import digg
from searx.testing import SearxTestCase
class TestDiggEngine(SearxTestCase):
def test_request(self):
query = 'test_query'
dicto = defaultdict(dict)
dicto['pageno'] = 1
params = digg.request(query, dicto)
self.assertIn('url', params)
self.assertIn(query, params['url'])
self.assertIn('digg.com', params['url'])
|