'Make a request to the auto-auth end-point and check
that the response is successful.
Arguments:
params (dict): Dict of params to pass to the auto_auth view
status_code (int): Expected response status code
kwargs: Passed directly to the test client\'s get method.
Returns:
Response: The response object for the auto_auth page.'

def _auto_auth(self, params=None, status_code=200, **kwargs):

    params = (params or {})
    response = self.client.get(self.url, params, **kwargs)
    self.assertEqual(response.status_code, status_code)
    for cookie in ['csrftoken', 'sessionid']:
        self.assertIn(cookie, response.cookies)
        self.assertTrue(response.cookies[cookie].value)
    return response
