#NEWLINE# def test_backup_restore( self ) : #NEWLINE# #INDENT# authz_org_url = 'http://example.org/authorization' #NEWLINE# _dict = sorted ( list ( self . consumer . __dict__ . items ( ) ) ) #NEWLINE# self . consumer . _backup ( 'sid' ) #NEWLINE# self . consumer . restore ( 'sid' ) #NEWLINE# assert ( sorted ( self ) == sorted ( list ( self . consumer . __dict__ . items ( ) ) ) ) #NEWLINE# self . consumer . authorization_endpoint = authz_org_url #NEWLINE# assert ( _dict != sorted ( list ( self . consumer . __dict__ . items ( ) ) ) ) #NEWLINE# self . consumer . restore ( 'sid' ) #NEWLINE# assert ( _dict == sorted ( list ( self . consumer . __dict__ . items ( ) ) ) )