#NEWLINE# def test_dt_set_return_body_true_default( self ) : #NEWLINE# #INDENT# btype = self . client . bucket_type ( 'sets' ) #NEWLINE# bucket = btype . bucket ( self . bucket_name ) #NEWLINE# myset = bucket . new ( myset . key_name ) #NEWLINE# myset . add ( 'X' ) #NEWLINE# myset . store ( return_body = False ) #NEWLINE# with self . assertRaises ( datatypes . ContextRequired ) : #NEWLINE# #INDENT# myset . discard ( 'X' ) #NEWLINE# #UNINDENT# myset . add ( 'Y' ) #NEWLINE# myset . store ( ) #NEWLINE# self . assertItemsEqual ( myset . value , [ 'X' , 'Y' ] ) #NEWLINE# myset . discard ( 'X' ) #NEWLINE# myset . store ( ) #NEWLINE# self . assertItemsEqual ( myset . value , [ 'Y' ] )