class FooTest(unittest.TestCase):

    def setUp(self):
        httpretty.register_uri(httpretty.GET,
            'http://bogus.example.com/v2.0', body='[{"response": "Valid"}]',
            content_type='application/json')

@httpretty.activate
def test_test_case(self):
    resp = requests.get('http://bogus.example.com/v2.0')
self.assertEqual(resp.status_code, 200)
How can I use unittest.mock to remove side effects from code?