#NEWLINE# def test_delete_sys_pack( self ) : #NEWLINE# #INDENT# instance = self . __create_instance ( ) #NEWLINE# instance [ 'pack' ] = 'core' #NEWLINE# post_resp = self . __do_post ( instance ) #NEWLINE# self . assertEqual ( post_resp . status_int , http_client . CREATED ) #NEWLINE# del_resp = self . __do_delete ( self . __get_obj_id ( post_resp ) ) #NEWLINE# self . assertEqual ( del_resp . status_int , http_client . BAD_REQUEST ) #NEWLINE# self . assertEqual ( del_resp . json [ 'faultstring' ] , "Resources belonging to system level packs can't be manipulated" ) #NEWLINE# Policy . delete ( Policy . get_by_id ( self . __get_obj_id ( post_resp ) ) )