コード例 #1
0
ファイル: tests.py プロジェクト: shahraam/Halowrepo
 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)
コード例 #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)