Exemple #1
0
 def stub_request(self, expected_url, filename, status=None):
   self.fake_web = True
   self.faker = get_faker(expected_url, filename, status)
 def stub_request(self, expected_url, filename, status=None, body=None):
   """Stub a web request for testing."""
   self.fake_web = True
   self.faker = get_faker(expected_url, filename, status, body)
Exemple #3
0
 def stub_request(self, expected_url, filename, status=None, body=None):
     """Stub a web request for testing."""
     self.fake_web = True
     self.faker = get_faker(expected_url, filename, status, body)
 def stub_request(self, expected_url, filename, status=None):
     self.fake_web = True
     self.faker = get_faker(expected_url, filename, status)