|
@@ -15,7 +15,7 @@ class TestPiratebayEngine(SearxTestCase):
|
15
|
15
|
params = piratebay.request(query, dicto)
|
16
|
16
|
self.assertIn('url', params)
|
17
|
17
|
self.assertIn(query, params['url'])
|
18
|
|
- self.assertIn('piratebay.am', params['url'])
|
|
18
|
+ self.assertIn('piratebay.se', params['url'])
|
19
|
19
|
self.assertIn('0', params['url'])
|
20
|
20
|
|
21
|
21
|
dicto['category'] = 'music'
|
|
@@ -99,7 +99,7 @@ class TestPiratebayEngine(SearxTestCase):
|
99
|
99
|
self.assertEqual(type(results), list)
|
100
|
100
|
self.assertEqual(len(results), 2)
|
101
|
101
|
self.assertEqual(results[0]['title'], 'This is the title')
|
102
|
|
- self.assertEqual(results[0]['url'], 'https://thepiratebay.am/this.is.the.link')
|
|
102
|
+ self.assertEqual(results[0]['url'], 'https://thepiratebay.se/this.is.the.link')
|
103
|
103
|
self.assertEqual(results[0]['content'], 'This is the content and should be OK')
|
104
|
104
|
self.assertEqual(results[0]['seed'], 13)
|
105
|
105
|
self.assertEqual(results[0]['leech'], 334)
|
|
@@ -149,7 +149,7 @@ class TestPiratebayEngine(SearxTestCase):
|
149
|
149
|
self.assertEqual(type(results), list)
|
150
|
150
|
self.assertEqual(len(results), 1)
|
151
|
151
|
self.assertEqual(results[0]['title'], 'This is the title')
|
152
|
|
- self.assertEqual(results[0]['url'], 'https://thepiratebay.am/this.is.the.link')
|
|
152
|
+ self.assertEqual(results[0]['url'], 'https://thepiratebay.se/this.is.the.link')
|
153
|
153
|
self.assertEqual(results[0]['content'], 'This is the content and should be OK')
|
154
|
154
|
self.assertEqual(results[0]['seed'], 0)
|
155
|
155
|
self.assertEqual(results[0]['leech'], 0)
|