class Mocking_Test(TestCase):

    def test_mock(self):

        def return_response(a, b, c, *parms, **args):
            print('in request().return_response')


class makeResponse(object):
    status = 200
reason = 'making stuff up'
return makeResponse()
fakeClient = Mock()
fakeClient.return_value = return_response
with patch('abc.client.SomeHTTPClient.request', new_callable=fakeClient):
    dh = DataHandler()
reply = dh.post_data(url='somewhere', data='stuff')
Как издеваться над классом Python, который имеет два импорта?