#NEWLINE# def test_getAssociation( self ) : #NEWLINE# #INDENT# timestamp = int ( time . time ( ) ) #NEWLINE# self . store . storeAssociation ( 'server-url' , OIDAssociation ( 'handle' , 'secret' , timestamp , 600 , 'HMAC-SHA1' ) ) #NEWLINE# assoc = self . store . getAssociation ( 'server-url' , 'handle' ) #NEWLINE# self . assertTrue ( isinstance ( assoc , OIDAssociation ) ) #NEWLINE# self . assertEquals ( assoc . handle , 'handle' ) #NEWLINE# self . assertEquals ( assoc . secret , 'secret' ) #NEWLINE# self . assertEquals ( assoc . issued , timestamp ) #NEWLINE# self . assertEquals ( assoc . lifetime , 600 ) #NEWLINE# self . assertEquals ( assoc . assoc_type , 'HMAC-SHA1' )