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