

def setUp(self):
    super(AddressTests, self).setUp()

    def get_http_client(*args, **kwargs):
        return self.request_client(*args, **kwargs)
    self.client_patcher = patch('shippo.http_client.new_default_http_client')
    client_mock = self.client_patcher.start()
    client_mock.side_effect = get_http_client

dataset/ETHPy150Open goshippo/shippo-python-client/shippo/test/test_address.py AddressTests.setUp/original