#NEWLINE# def test_dt_set_add_wins_in_same_op_reversed( self ) : #NEWLINE# #INDENT# btype = self . client . bucket_type ( 'sets' ) #NEWLINE# bucket = btype . bucket ( self . bucket_name ) #NEWLINE# set = datatypes . Set ( bucket , set . key_name ) #NEWLINE# set . add ( 'X' ) #NEWLINE# set . add ( 'Y' ) #NEWLINE# set . store ( ) #NEWLINE# set . reload ( ) #NEWLINE# set . discard ( 'X' ) #NEWLINE# set . add ( 'X' ) #NEWLINE# set . store ( ) #NEWLINE# set2 = bucket . get ( self . key_name ) #NEWLINE# self . assertItemsEqual ( [ 'X' , 'Y' ] , set2 . value )