#NEWLINE# def test_discover( self ) : #NEWLINE# #INDENT# c = Consumer ( None , None ) #NEWLINE# mfos = MyFakeOICServer ( 'http://localhost:8088' ) #NEWLINE# mfos . keyjar = SRVKEYS #NEWLINE# c . http_request = mfos . http_request #NEWLINE# principal = 'foo@example.com' #NEWLINE# res = c . discover ( principal ) #NEWLINE# assert ( res == 'http://localhost:8088/' )