#NEWLINE# def test_websso_redirect_by_protocol( self ) : #NEWLINE# #INDENT# origin = 'http://testserver/auth/websso/' #NEWLINE# protocol = 'oidc' #NEWLINE# redirect_url = ( '%s/auth/OS-FEDERATION/websso/%s?origin=%s' % ( settings . OPENSTACK_KEYSTONE_URL , protocol , origin ) ) #NEWLINE# form_data = { #NEWLINE# #INDENT# 'auth_type' : protocol , #NEWLINE# 'region' : settings . OPENSTACK_KEYSTONE_URL , #NEWLINE# #UNINDENT# } #NEWLINE# url = reverse ( 'login' ) #NEWLINE# response = self . client . post ( url , form_data ) #NEWLINE# self . assertRedirects ( response , redirect_url , status_code = 302 , target_status_code = 404 )