def test_redirect_to_login_when_not_authenticated(self): test_redirect_to_login_when_not_authenticated(self, self.target_url)
def test_redirect_to_login_when_not_authenticated(self): test_redirect_to_login_when_not_authenticated(self, reverse("search:home"))
def test_redirect_when_not_authenticated(self): test_redirect_to_login_when_not_authenticated(self, reverse("post:create"))
def test_redirect_to_login_when_not_authenticated(self): self.client.logout() return test_redirect_to_login_when_not_authenticated(self, self.target_url)
def test_redirect_when_not_authenticated(self): test_redirect_to_login_when_not_authenticated(self, reverse("post:delete", args=(1, )))