def test_sso_entry_returns_bad_request_if_no_samlrequest(self): del sample_get_request.GET['SAMLRequest'] response = sso_entry(sample_get_request) assert response.status_code == 400
def test_sso_entry_redirects(self): response = sso_entry(sample_get_request) assert isinstance(response, HttpResponseRedirect)
def test_sso_entry_redirects_to_right_path(self): response = sso_entry(sample_get_request) assert response.url == '/login/process/'
def test_sso_entry_returns_bad_request_if_no_samlrequest(self): del sample_get_request.GET['SAMLRequest'] response = sso_entry(sample_get_request) assert isinstance(response, HttpResponseBadRequest)