|
@@ -14,14 +14,12 @@ class TestBingEngine(SearxTestCase):
|
14
|
14
|
params = bing.request(query, dicto)
|
15
|
15
|
self.assertTrue('url' in params)
|
16
|
16
|
self.assertTrue(query in params['url'])
|
|
17
|
+ self.assertTrue('language%3AFR' in params['url'])
|
17
|
18
|
self.assertTrue('bing.com' in params['url'])
|
18
|
|
- self.assertTrue('SRCHHPGUSR' in params['cookies'])
|
19
|
|
- self.assertTrue('fr' in params['cookies']['SRCHHPGUSR'])
|
20
|
19
|
|
21
|
20
|
dicto['language'] = 'all'
|
22
|
21
|
params = bing.request(query, dicto)
|
23
|
|
- self.assertTrue('SRCHHPGUSR' in params['cookies'])
|
24
|
|
- self.assertTrue('en' in params['cookies']['SRCHHPGUSR'])
|
|
22
|
+ self.assertTrue('language' not in params['url'])
|
25
|
23
|
|
26
|
24
|
def test_response(self):
|
27
|
25
|
self.assertRaises(AttributeError, bing.response, None)
|