#NEWLINE# def test_no_delete_of_used_plugin( self ) : #NEWLINE# #INDENT# resp = self . env . create_plugin ( api = True ) #NEWLINE# plugin = objects . Plugin . get_by_uid ( resp . json [ 'id' ] ) #NEWLINE# cluster = self . create_cluster ( ) #NEWLINE# enable_resp = self . enable_plugin ( cluster , plugin . name , plugin . id ) #NEWLINE# self . assertEqual ( enable_resp . status_code , 200 ) #NEWLINE# del_resp = self . delete_plugin ( resp . json [ 'id' ] , expect_errors = True ) #NEWLINE# self . assertEqual ( del_resp . status_code , 400 )