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 /python2 | |
| parent | 855ab279b53db96836297bfa55aa01705d956570 (diff) | |
| download | httplib2-ac335ffb8bfa46953ee08cf5c07f4b877fac3bd0.tar.gz | |
Fix up some tests.
Diffstat (limited to 'python2')
| -rwxr-xr-x | python2/httplib2test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python2/httplib2test.py b/python2/httplib2test.py index 2869b6b..675fe66 100755 --- a/python2/httplib2test.py +++ b/python2/httplib2test.py @@ -443,11 +443,11 @@ class HttpTest(unittest.TestCase): self.assertEqual("302", response['status']) self.assertTrue(content.startswith("This is content")) - def testGet302ViaHttps(self): - # Google always redirects to http://google.com - (response, content) = self.http.request("https://www.google.com", "GET") + def testGet301ViaHttps(self): + # Google always redirects to https://www.google.com + (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 |
