#NEWLINE# def testLoginDiscoverFail( self ) : #NEWLINE# #INDENT# 'E.g. the user enters an invalid URL' #NEWLINE# openid_consumer = MyDiscoverFailConsumer ( ) #NEWLINE# post = rf . post ( '/openid/' , { #NEWLINE# #INDENT# 'openid_url' : 'not-an-openid' , #NEWLINE# #UNINDENT# } ) #NEWLINE# post . session = MockSession ( ) #NEWLINE# response = openid_consumer ( post ) #NEWLINE# self . assert_ ( ( openid_consumer . openid_invalid_message in str ( response ) ) )