From f8032e08aeeff297ce72d8539be57207b97cf0f7 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 25 Feb 2011 08:58:24 -0500 Subject: [PATCH] tests cleanups --- test_requests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_requests.py b/test_requests.py index 9249faf7..22716f13 100644 --- a/test_requests.py +++ b/test_requests.py @@ -34,6 +34,7 @@ class RequestsTestSuite(unittest.TestCase): r = requests.get('http://www.google.com/search', params={'q': 'test'}, headers=heads) self.assertEqual(r.status_code, 200) + def test_HTTP_200_OK_GET_WITH_MIXED_PARAMS(self): heads = {'User-agent': 'Mozilla/5.0'} @@ -75,9 +76,9 @@ class RequestsTestSuite(unittest.TestCase): self.assertEqual(post2.status_code, 201) def test_POSTBIN_GET_POST_FILES_WITH_PARAMS(self): - # TODO: postbin w/ params + bin = requests.post('http://www.postbin.org/') - print bin.url + self.assertEqual(bin.status_code, 200) post2 = requests.post(bin.url, files={'some': open('test_requests.py')}, data={'some': 'data'})