summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_www1x.py
blob: 40f5200fd75e3a8226b0e02123d7644075667467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from collections import defaultdict
import mock
from searx.engines import www1x
from searx.testing import SearxTestCase


class TestWww1xEngine(SearxTestCase):

    def test_request(self):
        query = 'test_query'
        params = www1x.request(query, defaultdict(dict))
        self.assertTrue('url' in params)
        self.assertTrue(query in params['url'])
        self.assertTrue('1x.com' in params['url'])