#NEWLINE# @ testing . gen_test #NEWLINE# def test_hyperloglog( self ) : #NEWLINE# #INDENT# ( key1 , key2 , key3 ) = self . uuid4 ( 3 ) #NEWLINE# result = ( yield self . client . pfadd ( key1 , 'foo' , 'bar' , 'zap' , 'a' ) ) #NEWLINE# self . assertTrue ( result ) #NEWLINE# result = ( yield self . client . pfadd ( key2 , 'a' , 'b' , 'c' , 'foo' ) ) #NEWLINE# self . assertTrue ( key1 ) #NEWLINE# result = ( yield self . client . pfmerge ( key3 , key1 , key2 ) ) #NEWLINE# self . assertTrue ( result ) #NEWLINE# result = ( yield self . client . pfcount ( key3 ) ) #NEWLINE# self . assertEqual ( result , 6 ) #NEWLINE# result = ( yield self . client . delete ( key3 , key1 , key2 ) ) #NEWLINE# self . assertTrue ( result )