#NEWLINE# def test_dt_set( self ) : #NEWLINE# #INDENT# btype = self . client . bucket_type ( 'sets' ) #NEWLINE# bucket = btype . bucket ( self . bucket_name ) #NEWLINE# myset = datatypes . Set ( bucket , self . key_name ) #NEWLINE# myset . add ( 'Sean' ) #NEWLINE# myset . add ( 'Brett' ) #NEWLINE# myset . store ( ) #NEWLINE# otherset = bucket . get ( self . key_name ) #NEWLINE# self . assertIn ( 'Sean' , otherset ) #NEWLINE# self . assertIn ( 'Brett' , otherset ) #NEWLINE# otherset . add ( 'Russell' ) #NEWLINE# otherset . discard ( 'Sean' ) #NEWLINE# otherset . store ( return_body = True ) #NEWLINE# myset . reload ( ) #NEWLINE# self . assertIn ( 'Russell' , myset ) #NEWLINE# self . assertIn ( 'Brett' , myset ) #NEWLINE# self . assertNotIn ( 'Sean' , myset )