#NEWLINE# def test_delete_by_id( self ) : #NEWLINE# #INDENT# with self . new_user ( save = True ) as u : #NEWLINE# #INDENT# assert u . collection . find_one ( { #NEWLINE# #INDENT# '_id' : u . _id , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . User . delete_by_id ( self . id ) #NEWLINE# assert ( not u . collection . find_one ( { #NEWLINE# #INDENT# '_id' : u . _id , #NEWLINE# #UNINDENT# } ) )