#NEWLINE# def test_fromSuccessResponseWithoutExtension( self ) : #NEWLINE# #INDENT# 'return None for SuccessResponse with no AX paramaters.' #NEWLINE# args = { #NEWLINE# #INDENT# 'mode' : 'id_res' , #NEWLINE# 'ns' : OPENID2_NS , #NEWLINE# #UNINDENT# } #NEWLINE# sf = [ ( 'openid.' + oreq ) for i in args . keys ( ) ] #NEWLINE# msg = Message . fromOpenIDArgs ( args ) #NEWLINE# class Endpoint ( ) : #NEWLINE# #INDENT# claimed_id = 'http://invalid.' #NEWLINE# #UNINDENT# oreq = SuccessResponse ( Endpoint ( ) , msg , signed_fields = sf ) #NEWLINE# r = ax . FetchResponse . fromSuccessResponse ( oreq ) #NEWLINE# self . failUnless ( ( r is None ) , ( '%s is not None' % ( r , ) ) )