diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-08-25 22:56:40 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-08-25 22:56:40 +0200 |
commit | 3f31e1ce6bcaea595a6e773c4ff729cf7a9e31e1 (patch) | |
tree | b7b97ee97f39affc36d566077a5b0227150353d7 /searx/tests | |
parent | 42ac2c5b56607a8d061063e77d39b2d467ad9f9c (diff) | |
download | searxng-3f31e1ce6bcaea595a6e773c4ff729cf7a9e31e1.tar.gz searxng-3f31e1ce6bcaea595a6e773c4ff729cf7a9e31e1.zip |
[fix] piratebay tld according to wikipedia
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 6ebbcf713..5699380be 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.am', params['url']) + self.assertIn('piratebay.se', 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.am/this.is.the.link') + self.assertEqual(results[0]['url'], 'https://thepiratebay.se/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.am/this.is.the.link') + self.assertEqual(results[0]['url'], 'https://thepiratebay.se/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) |