#NEWLINE# def test_crud( self ) : #NEWLINE# #INDENT# instance = self . __create_instance ( ) #NEWLINE# post_resp = self . __do_post ( instance ) #NEWLINE# self . assertEqual ( post_resp . status_int , http_client . CREATED ) #NEWLINE# get_resp = self . __do_get_one ( self . __get_obj_id ( post_resp ) ) #NEWLINE# self . assertEqual ( get_resp . status_int , http_client . OK ) #NEWLINE# updated_input = get_resp . json #NEWLINE# updated_input [ 'enabled' ] = ( not updated_input [ 'enabled' ] ) #NEWLINE# put_resp = self . __do_put ( self . __get_obj_id ( post_resp ) , updated_input ) #NEWLINE# self . assertEqual ( put_resp . status_int , http_client . OK ) #NEWLINE# self . assertEqual ( put_resp . json [ 'enabled' ] , updated_input [ 'enabled' ] ) #NEWLINE# del_resp = self . __do_delete ( self . __get_obj_id ( post_resp ) ) #NEWLINE# self . assertEqual ( del_resp . status_int , http_client . NO_CONTENT )