def stub_out_https_backend(stubs):
 class FakeHTTPResponse(object, ):
  def read(self):
   return DATA
 def fake_do_request(self, *args, **kwargs):
  return (httplib.OK, FakeHTTPResponse())

def stub_out_https_backend ( stubs ) : class FakeHTTPResponse ( object , ) : def read ( self ) : return DATA def fake_do_request ( self , * args , ** kwargs ) : return ( httplib . OK , FakeHTTPResponse ( ) )
stubs out the httplib .