#NEWLINE# def test_zdiffstore_withscores2( self ) : #NEWLINE# #INDENT# c = self . client #NEWLINE# ( yield self . multi_async ( ( c . zadd ( 's1' , 1 , 'a' , 2 , 'b' , 3 , 'c' , 4 , 'd' ) , c . zadd ( 's2' , 6 , 'a' , 2 , 'b' , 100 , 'c' ) ) ) ) #NEWLINE# r = ( yield c . zdiffstore ( 's3' , ( 's1' , 's2' ) , withscores = True ) ) #NEWLINE# self . async . assertEqual ( c . zcard ( 's3' ) , 3 ) #NEWLINE# r = ( yield c . zrange ( 's3' , 0 , ( - 1 ) , withscores = True ) ) #NEWLINE# self . assertEqual ( dict ( r ) , { #NEWLINE# #INDENT# b'a' : ( - 5.0 ) , #NEWLINE# b'c' : ( - 97.0 ) , #NEWLINE# b'd' : 4.0 , #NEWLINE# #UNINDENT# } )