Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-lundin committed Aug 1, 2018
1 parent 04593c2 commit 4e3ed23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ def test_parse_season_response(self):
self.assertEqual(len(seasons), 7)

def test_api_url_generation(self):
expected = 'http://www.dreamfilmhd.sh/API/api.php?type=list&offset=0&limit=25&q=Bad%20santa&sort=alpha'
expected = 'http://www.streamtajm.com/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)

def test_paged_api_url_generation(self):
pager = dreamfilm._paged_api_url(type='list', q="Bad santa", sort="alpha")
page1 = 'http://www.dreamfilmhd.sh/API/api.php?type=list&offset=25&limit=25&q=Bad%20santa&sort=alpha'
page2 = 'http://www.dreamfilmhd.sh/API/api.php?type=list&offset=50&limit=25&q=Bad%20santa&sort=alpha'
page1 = 'http://www.streamtajm.com/API/api.php?type=list&offset=25&limit=25&q=Bad%20santa&sort=alpha'
page2 = 'http://www.streamtajm.com/API/api.php?type=list&offset=50&limit=25&q=Bad%20santa&sort=alpha'
self.assertEqual(pager(1), page1)
self.assertEqual(pager(2), page2)

Expand Down

0 comments on commit 4e3ed23

Please sign in to comment.