예제 #1
0
    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
예제 #2
0
 def test_sso_entry_redirects(self):
     response = sso_entry(sample_get_request)
     assert isinstance(response, HttpResponseRedirect)
예제 #3
0
 def test_sso_entry_redirects_to_right_path(self):
     response = sso_entry(sample_get_request)
     assert response.url == '/login/process/'
예제 #4
0
    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)