Exemple #1
0
 def test_response(self):
     """Tests the Resonse object."""
     response = urlfetch.fetch('http://www.google.com')
     assert 'Google' in response.content
     assert response.content_was_truncated == False
     assert response.status_code == 200
     assert type(response.headers) == types.DictType
 def test_response(self):
     """Tests the Resonse object."""
     response = urlfetch.fetch('http://www.google.com')
     assert 'Google' in response.content
     assert response.content_was_truncated == False
     assert response.status_code == 200
     assert type(response.headers) == types.DictType
Exemple #3
0
 def test_response404(self):
     response = urlfetch.fetch('http://www.google.com/404')
     assert response.status_code == 404
 def test_response404(self):
     response = urlfetch.fetch('http://www.google.com/404')
     assert response.status_code == 404