human
Complete this python program:
def common_mocks(f):
assistant
#Here is the Python program you requested.

    """Decorator to set mocks common to all tests.
    The point of doing these mocks here is so that we don\t accidentally set
    mocks that can\t/don\t get unset.
    """
    def _common_inner_inner1(inst, *args, **kwargs):
        @mock.patch('six.moves.http_client.HTTPSConnection', autospec=True)
        def _common_inner_inner2(mock_conn):
            inst.mock_httplib = mock_conn
            inst.mock_conn = mock_conn.return_value
            inst.mock_response = mock.Mock()
            inst.mock_response.read.return_value = '{}'
            inst.mock_response.status = http_client.OK
            inst.mock_conn.request.return_value = True
            inst.mock_conn.getresponse.return_value = inst.mock_response
            return f(inst, *args, **kwargs)
        return _common_inner_inner2()
    return _common_inner_inner1