#NEWLINE# def test_is_retracted( self ) : #NEWLINE# #INDENT# retraction = factories . RetractionFactory ( ) #NEWLINE# registration = Node . find_one ( Q ( 'retraction' , 'eq' , retraction ) ) #NEWLINE# with mock . patch ( 'website.project.sanctions.Sanction.is_approved' , mock . Mock ( return_value = True ) ) : #NEWLINE# #INDENT# assert_true ( registration . is_retracted )