'Submit a request against the given view with the given data and ensure
that the result is a 400 error and that no data was posted using
mock_request'

def _test_request_error(self, view_name, view_kwargs, data, mock_request):

    self._setup_mock_request(mock_request, include_depth=(view_name == 'create_sub_comment'))
    response = self.client.post(reverse(view_name, kwargs=view_kwargs), data=data)
    self.assertEqual(response.status_code, 400)
    for call in mock_request.call_args_list:
        self.assertEqual(call[0][0].lower(), 'get')
