Skip to content
Myr

update tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 3b86c3c · Browse files · 1 file+6 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−5 removed

  • other:+6 added−5 removed

1 file+6 added−5 removed

modified:test_requests.py+6 added-5 removed
29 unmodified lines
30 self.assertEqual(r.status_code, 200)313233 def test_HTTPS_200_OK_GET(self):34 r = requests.get('https://httpbin.org/')34 r = requests.get('https://github.com/')35 self.assertEqual(r.status_code, 200)363738 def test_HTTP_200_OK_GET_WITH_PARAMS(self):
13 unmodified lines
525354 def test_user_agent_transfers(self):55 """Issue XX"""5657 heads = {58 'User-agent':59 'Mozilla/5.0 (github.com/kennethreitz/requests)'60 }6161 r = requests.get('http://whatsmyua.com', headers=heads);62 r = requests.get('http://httpbin.org/user-agent', headers=heads);63 self.assertTrue(heads['User-agent'] in r.content)6465 heads = {66 'user-agent':67 'Mozilla/5.0 (github.com/kennethreitz/requests)'68 }6969 r = requests.get('http://whatsmyua.com', headers=heads);70 r = requests.get('http://httpbin.org/user-agent', headers=heads);71 self.assertTrue(heads['user-agent'] in r.content)727374 def test_HTTP_200_OK_HEAD(self):74 r = requests.head('http://google.com')75 r = requests.head('http://httpbin.org')76 self.assertEqual(r.status_code, 200)777879 def test_HTTPS_200_OK_HEAD(self):79 r = requests.head('https://google.com')80 r = requests.head('https://github.com')81 self.assertEqual(r.status_code, 200)828384 def test_AUTH_HTTPS_200_OK_GET(self):
132 unmodified lines