summaryrefslogtreecommitdiff
path: root/tests/unit/engines/test_twitter.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/engines/test_twitter.py')
-rw-r--r--tests/unit/engines/test_twitter.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/engines/test_twitter.py b/tests/unit/engines/test_twitter.py
index 10e4a0ba9..b444b48ee 100644
--- a/tests/unit/engines/test_twitter.py
+++ b/tests/unit/engines/test_twitter.py
@@ -20,6 +20,12 @@ class TestTwitterEngine(SearxTestCase):
self.assertIn('lang', params['cookies'])
self.assertIn('fr', params['cookies']['lang'])
+ dicto['language'] = 'all'
+ params = twitter.request(query, dicto)
+ self.assertIn('cookies', params)
+ self.assertIn('lang', params['cookies'])
+ self.assertIn('en', params['cookies']['lang'])
+
def test_response(self):
self.assertRaises(AttributeError, twitter.response, None)
self.assertRaises(AttributeError, twitter.response, [])