def test_get_torrent_page(self): webclient = WebClient(self.session) html = webclient.get_torrent_page(669606) self.assertIn(html, '669606')
def test_get_torrent_page_url_and_method(self): webclient = WebClient(self.session) webclient.get_torrent_page(1) self.session.request.assert_called_once_with('GET', 'http://rutracker.org/forum/viewtopic.php?t=1', timeout=TIMEOUTS)