|
@@ -26,16 +26,19 @@ class TestGoogleEngine(SearxTestCase):
|
26
|
26
|
self.assertIn('url', params)
|
27
|
27
|
self.assertIn(query, params['url'])
|
28
|
28
|
self.assertIn('google.fr', params['url'])
|
|
29
|
+ self.assertIn('fr', params['url'])
|
29
|
30
|
self.assertIn('fr', params['headers']['Accept-Language'])
|
30
|
31
|
|
31
|
32
|
dicto['language'] = 'en-US'
|
32
|
33
|
params = google.request(query, dicto)
|
33
|
|
- self.assertIn('google.co', params['url'])
|
|
34
|
+ self.assertIn('google.com', params['url'])
|
|
35
|
+ self.assertIn('en', params['url'])
|
34
|
36
|
self.assertIn('en', params['headers']['Accept-Language'])
|
35
|
37
|
|
36
|
38
|
dicto['language'] = 'zh'
|
37
|
39
|
params = google.request(query, dicto)
|
38
|
40
|
self.assertIn('google.com', params['url'])
|
|
41
|
+ self.assertIn('zh-CN', params['url'])
|
39
|
42
|
self.assertIn('zh-CN', params['headers']['Accept-Language'])
|
40
|
43
|
|
41
|
44
|
def test_response(self):
|