#NEWLINE# def test_verifyWithDiscoveryCalled( self ) : #NEWLINE# #INDENT# realm = 'http://*.example.com/' #NEWLINE# return_to = 'http://www.example.com/foo' #NEWLINE# def vrfy( disco_url ) : #NEWLINE# #INDENT# self . assertEqual ( 'http://www.example.com/' , disco_url ) #NEWLINE# return [ return_to ] #NEWLINE# #UNINDENT# self . assertTrue ( trustroot . verifyReturnTo ( realm , return_to , _vrfy = vrfy ) ) #NEWLINE# self . failUnlessLogEmpty ( )