Exemple #1
0
 def test_get_torrents_invalid_values(self):
     ezflix = Ezflix(query='-1', limit=-2, media_type='movie')
     torrents = ezflix.search()
     self.assertIsNone(torrents)
     self.assertIsNone(ezflix.torrent_info(0))
     self.assertIsNone(ezflix.torrent_info(100))
     ezflix = Ezflix(query='platoon', media_type='movie', limit=-2)
     torrents = ezflix.search()
     self.assertTrue(len(torrents) == 0)
     self.assertIsNone(ezflix.torrent_info(0))
     ezflix = Ezflix(query='wow', limit=-2, media_type='movie')
     torrents = ezflix.similar(-1)
     self.assertIsNone(torrents)
Exemple #2
0
 def test_get_magnet(self):
     ezflix = Ezflix(query="Man in the high castle", limit=20)
     torrents = ezflix.search()
     self.assertTrue(len(torrents) > 0)
     self.assertIsNotNone(ezflix.torrent_info(1))