#NEWLINE# def test_DELETE_missing( self ) : #NEWLINE# #INDENT# request = MagicMock ( ) #NEWLINE# self . zone . delete_record . side_effect = KeyError ( ) #NEWLINE# self . resource . render_DELETE ( self ) #NEWLINE# self . zone . delete_record . assert_called_once_with ( self . name ) #NEWLINE# request . setResponseCode . assert_called_once_with ( 404 )