#NEWLINE# def test_delete_detail_soft( self ) : #NEWLINE# #INDENT# "Tests that an object can be 'soft' deleted.\n        Verifies that the object still exists in the database.\n        Verifies that the object's deleted_by and deleted_on properties have\n        been set.\n        " #NEWLINE# if self . is_abstract_class : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# mozlogger . info ( 'test_delete_detail_soft' ) #NEWLINE# fixture1 = self . factory #NEWLINE# obj_id = str ( fixture1 . id ) #NEWLINE# backend_obj = self . backend_object ( obj_id ) #NEWLINE# backend_obj . created_on = datetime ( 2011 , 12 , 13 , 20 , 39 ) #NEWLINE# meta_before_delete = self . backend_meta_data ( backend_obj ) #NEWLINE# self . assertIsNone ( meta_before_delete [ 'deleted_on' ] ) #NEWLINE# self . assertIsNone ( meta_before_delete [ 'deleted_by' ] ) #NEWLINE# self . delete ( self . resource_name , obj_id , params = self . credentials , status = 200 ) #NEWLINE# meta_after_delete = self . backend_meta_data ( self . backend_object ( obj_id ) ) #NEWLINE# self . assertEqual ( meta_after_delete [ 'deleted_on' ] , self . utcnow ) #NEWLINE# self . assertEqual ( meta_after_delete [ 'deleted_by' ] , self . user . username ) #NEWLINE# self . assertNotEqual ( meta_before_delete [ 'deleted_on' ] , meta_after_delete [ 'deleted_on' ] )