def test_signed_response_with_signed_assertion(self): # This test verifies that the response got signed properly. params = {} params.update(IDP_PARAMS) params.update(REQUEST_PARAMS) params.update(RESPONSE_PARAMS) params['ASSERTION'] = SIGNED_ASSERTION_SALESFORCE_XML got = xml_render.get_response_xml(params, signed=True) self._test(got, SIGNED_RESPONSE_WITH_SIGNED_ASSERTION_SALESFORCE_XML)
def test_response_with_signed_assertion(self): # This test also verifies that the template isn't bad. params = {} params.update(IDP_PARAMS) params.update(REQUEST_PARAMS) params.update(RESPONSE_PARAMS) params['ASSERTION'] = SIGNED_ASSERTION_SALESFORCE_XML got = xml_render.get_response_xml(params, signed=False) self._test(got, RESPONSE_WITH_SIGNED_ASSERTION_SALESFORCE_XML)
def test_response_rendering(self): # Verifies that the rendering is OK. params = {} params.update(IDP_PARAMS) params.update(REQUEST_PARAMS) params.update(RESPONSE_PARAMS) params['ASSERTION'] = ASSERTION_SALESFORCE_XML got = xml_render.get_response_xml(params, signed=False) self._test(got, RESPONSE_XML)