diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-06-30 12:46:00 -0400 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-06-30 12:46:00 -0400 |
commit | 8d36a8b837830d80667c7bd38e2b3abf1f3cb201 (patch) | |
tree | 2af8d4e88ea11fa0e563dc13fa1c9f699d6990ef /searx/tests | |
parent | 4770d218b820c5df5dce050202ec7461dd681828 (diff) | |
parent | 36a08f2a6a9110ec842741f1cbd5e8d67b3dd524 (diff) | |
download | searxng-8d36a8b837830d80667c7bd38e2b3abf1f3cb201.tar.gz searxng-8d36a8b837830d80667c7bd38e2b3abf1f3cb201.zip |
Merge pull request #333 from dalf/piratebay
[fix] Piratebay engine
Diffstat (limited to 'searx/tests')
-rw-r--r-- | searx/tests/engines/test_piratebay.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/tests/engines/test_piratebay.py b/searx/tests/engines/test_piratebay.py index 5699380be..6ebbcf713 100644 --- a/searx/tests/engines/test_piratebay.py +++ b/searx/tests/engines/test_piratebay.py @@ -15,7 +15,7 @@ class TestPiratebayEngine(SearxTestCase): params = piratebay.request(query, dicto) self.assertIn('url', params) self.assertIn(query, params['url']) - self.assertIn('piratebay.se', params['url']) + self.assertIn('piratebay.am', params['url']) self.assertIn('0', params['url']) dicto['category'] = 'music' @@ -99,7 +99,7 @@ class TestPiratebayEngine(SearxTestCase): self.assertEqual(type(results), list) self.assertEqual(len(results), 2) self.assertEqual(results[0]['title'], 'This is the title') - self.assertEqual(results[0]['url'], 'https://thepiratebay.se/this.is.the.link') + self.assertEqual(results[0]['url'], 'https://thepiratebay.am/this.is.the.link') self.assertEqual(results[0]['content'], 'This is the content and should be OK') self.assertEqual(results[0]['seed'], 13) self.assertEqual(results[0]['leech'], 334) @@ -149,7 +149,7 @@ class TestPiratebayEngine(SearxTestCase): self.assertEqual(type(results), list) self.assertEqual(len(results), 1) self.assertEqual(results[0]['title'], 'This is the title') - self.assertEqual(results[0]['url'], 'https://thepiratebay.se/this.is.the.link') + self.assertEqual(results[0]['url'], 'https://thepiratebay.am/this.is.the.link') self.assertEqual(results[0]['content'], 'This is the content and should be OK') self.assertEqual(results[0]['seed'], 0) self.assertEqual(results[0]['leech'], 0) |