'Asserts a response would redirect to /dashboard.'

def assert_redirect_to_dashboard_looks_correct(self, response):

    self.assertEqual(302, response.status_code)
    self.assertTrue(response.get('Location').endswith(django_settings.SOCIAL_AUTH_LOGIN_REDIRECT_URL))
