'Asserts a response would redirect to /login.'

def assert_redirect_to_login_looks_correct(self, response):

    self.assertEqual(302, response.status_code)
    self.assertEqual('/login', response.get('Location'))
