#NEWLINE# def test_clear( self ) : #NEWLINE# #INDENT# 'test clear behavior' #NEWLINE# v = self . client [ : ] #NEWLINE# v . block = True #NEWLINE# v . push ( dict ( a = 5 ) ) #NEWLINE# v . pull ( 'a' ) #NEWLINE# id0 = self . client . ids [ ( - 1 ) ] #NEWLINE# self . client . clear ( targets = id0 , block = True ) #NEWLINE# a = self . client [ : ( - 1 ) ] . get ( 'a' ) #NEWLINE# self . assertRaisesRemote ( NameError , self . client [ id0 ] . get , 'a' ) #NEWLINE# self . client . clear ( block = True ) #NEWLINE# for i in self . client . ids : #NEWLINE# #INDENT# self . assertRaisesRemote ( NameError , self . client [ i ] . get , 'a' )