@@ -1,3 +1,4 @@
1+# -*- coding: utf-8 -*-
12from collections import defaultdict
23import mock
34from searx.engines import duckduckgo
@@ -30,7 +31,7 @@ class TestDuckduckgoEngine(SearxTestCase):
3031 response = mock.Mock(text='<html></html>')
3132 self.assertEqual(duckduckgo.response(response), [])
3233
33− html = """
34+ html = u"""
3435 <div class="results_links results_links_deep web-result">
3536 <div class="icon_fav" style="display: block;">
3637 <a rel="nofollow" href="https://www.test.com/">
@@ -39,7 +40,7 @@ class TestDuckduckgoEngine(SearxTestCase):
3940 </a>
4041 </div>
4142 <div class="links_main links_deep"> <!-- This is the visible part -->
42− <a rel="nofollow" class="large" href="http://this.should.be.the.link/">
43+ <a rel="nofollow" class="large" href="http://this.should.be.the.link/ű">
4344 This <b>is</b> <b>the</b> title
4445 </a>
4546 <div class="snippet"><b>This</b> should be the content.</div>
@@ -54,7 +55,7 @@ class TestDuckduckgoEngine(SearxTestCase):
5455 self.assertEqual(type(results), list)
5556 self.assertEqual(len(results), 1)
5657 self.assertEqual(results[0]['title'], 'This is the title')
57− self.assertEqual(results[0]['url'], 'http://this.should.be.the.link/')
58+ self.assertEqual(results[0]['url'], u'http://this.should.be.the.link/ű')
5859 self.assertEqual(results[0]['content'], 'This should be the content.')
5960
6061 html = """