#NEWLINE# def test_destroy( self , **kwargs ) : #NEWLINE# #INDENT# "Send request to the destroy view endpoint, verify and return the response.\n\n        Also verifies the object does not exist anymore in the database.\n\n        :param kwargs: Extra arguments that are passed to the client's ``delete()`` call.\n        :returns: The view's response.\n        " #NEWLINE# response = self . get_destroy_response ( ** kwargs ) #NEWLINE# self . assertEqual ( response . status_code , status . HTTP_204_NO_CONTENT , self . data ) #NEWLINE# self . assertRaises ( ObjectDoesNotExist , self . object . __class__ . objects . get , ** { #NEWLINE# #INDENT# self . lookup_field : self . object_id , #NEWLINE# #UNINDENT# } ) #NEWLINE# return response