'Returns the data or params dict that `mock_request` was called with.'

def _data_or_params_cs_request(self, mock_request):

    call = [call for call in mock_request.call_args_list if call[0][1].endswith(self.cs_endpoint)][0]
    if (call[0][0] == 'get'):
        return call[1]['params']
    elif (call[0][0] == 'post'):
        return call[1]['data']
