def test_standard_view_works(self): resp = login_redirect(self.make_request(reverse('sentry', args=[1]))) assert resp.status_code == 302 assert resp['Location'] == reverse('sentry', args=[1])
def test_schema_uses_default(self): resp = login_redirect(self.make_request('http://example.com')) assert resp.status_code == 302 assert resp['Location'] == reverse('sentry')
def test_no_value_uses_default(self): resp = login_redirect(self.make_request()) assert resp.status_code == 302 assert resp['Location'] == reverse('sentry')
def test_login_uses_default(self): resp = login_redirect(self.make_request(reverse("sentry-login"))) assert resp.status_code == 302 assert resp["Location"] == reverse("sentry")
def test_schema_uses_default(self): resp = login_redirect(self.make_request("http://example.com")) assert resp.status_code == 302 assert resp["Location"] == reverse("sentry")