diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2011-11-27 10:41:06 -0500 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2011-11-27 10:41:06 -0500 |
| commit | ee36baf4f346b3d6817a6139840ac3b8b7e42621 (patch) | |
| tree | 2ceb86df9973bf23e9447e10b59dc000b9dd2e7c /test_requests.py | |
| parent | e85b857a35ddd4031535e6e960229155cc9cb4cc (diff) | |
| download | python-requests-0.8.3.tar.gz | |
test tuple'd authv0.8.3
Diffstat (limited to 'test_requests.py')
| -rwxr-xr-x | test_requests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test_requests.py b/test_requests.py index 9ac6b51c..7e4f146e 100755 --- a/test_requests.py +++ b/test_requests.py @@ -170,6 +170,10 @@ class RequestsTestSuite(unittest.TestCase): r = requests.get(url, auth=auth) self.assertEqual(r.status_code, 200) + auth = ('user', 'pass') + r = requests.get(url, auth=auth) + self.assertEqual(r.status_code, 200) + r = requests.get(url) self.assertEqual(r.status_code, 401) |
