diff options
| author | Joe Gregorio <jcgregorio@google.com> | 2011-11-14 12:29:03 -0500 |
|---|---|---|
| committer | Joe Gregorio <jcgregorio@google.com> | 2011-11-14 12:29:03 -0500 |
| commit | ac335ffb8bfa46953ee08cf5c07f4b877fac3bd0 (patch) | |
| tree | 02f4222585d8a69d411c512fb147dc1c87d95211 /python3 | |
| parent | 855ab279b53db96836297bfa55aa01705d956570 (diff) | |
| download | httplib2-ac335ffb8bfa46953ee08cf5c07f4b877fac3bd0.tar.gz | |
Fix up some tests.
Diffstat (limited to 'python3')
| -rwxr-xr-x | python3/httplib2test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python3/httplib2test.py b/python3/httplib2test.py index 7a1b8fe..b8f9813 100755 --- a/python3/httplib2test.py +++ b/python3/httplib2test.py @@ -428,11 +428,11 @@ class HttpTest(unittest.TestCase): self.assertEqual("302", response['status'])
self.assertTrue(content.startswith(b"This is content"))
- def testGet302ViaHttps(self):
+ def testGet301ViaHttps(self):
# Google always redirects to http://google.com
- (response, content) = self.http.request("https://www.google.com", "GET")
+ (response, content) = self.http.request("https://code.google.com/apis/", "GET")
self.assertEqual(200, response.status)
- self.assertEqual(302, response.previous.status)
+ self.assertEqual(301, response.previous.status)
def testGetViaHttps(self):
# Test that we can handle HTTPS
|
