#NEWLINE# def test_delete_port_byaddress( self , mock_dpt ) : #NEWLINE# #INDENT# response = self . delete ( ( '/ports/%s' % self . port . address ) , expect_errors = True ) #NEWLINE# self . assertEqual ( http_client . BAD_REQUEST , response . status_int ) #NEWLINE# self . assertEqual ( 'application/json' , response . content_type ) #NEWLINE# self . assertIn ( self . port . address , response . json [ 'error_message' ] )