Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)