Esempio n. 1
0
 def test_api_url_generation(self):
     expected = 'http://www.dreamfilmhd.org/API/api.php?type=list&offset=0&limit=25&q=Bad%20santa&sort=alpha'
     url = dreamfilm._api_url(type='list', q="Bad santa", sort="alpha")
     self.assertEqual(expected, url)
Esempio n. 2
0
 def test_api_url_generation(self):
     expected = 'http://www.dreamfilmhd.org/API/api.php?type=list&offset=0&limit=25&q=Bad%20santa&sort=alpha'
     url = dreamfilm._api_url(type='list', q="Bad santa", sort="alpha")
     self.assertEqual(expected, url)