'Verify that the user was redirected in order to set the logged in cookie.'

def assert_logged_in_cookie_redirect(self, response):

    self.assertEqual(response.status_code, 302)
    self.assertEqual(response['Location'], pipeline.get_complete_url(self.provider.backend_name))
    self.assertEqual(response.cookies[django_settings.EDXMKTG_LOGGED_IN_COOKIE_NAME].value, 'true')
    self.assertIn(django_settings.EDXMKTG_USER_INFO_COOKIE_NAME, response.cookies)
