Skip to content

Commit

Permalink
Merge pull request #28 from underdogio/dev/fix.requests.2.3.0.sqwished
Browse files Browse the repository at this point in the history
Fixed IP range expectations for tests
  • Loading branch information
charlax committed Mar 3, 2015
2 parents d6a12ec + e58f00e commit aacf62e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cassette/tests/test_cassette.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,10 @@ def test_requestslib_http(self):
def test_requestslib_https(self):
"""Test that HTTPS requests work using requests."""
resp = self.helper_requestslib(TEST_URL_HTTPS)
assert resp.headers['content-length'] == '30'
# len('{\n "origin":"0.0.0.0"\n}') # 24
assert int(resp.headers['content-length']) >= 24
# len('{\n "origin": "255.255.255.255"\n}') # 34
assert int(resp.headers['content-length']) <= 34
assert 'origin' in resp.json()

def test_requestslib_redir(self):
Expand Down

0 comments on commit aacf62e

Please sign in to comment.