#NEWLINE# def test_equality( self ) : #NEWLINE# #INDENT# engine1 = RedactionEngine ( [ RedactionRule ( 'password=' , 'password=".*"' , 'password="???"' ) ] ) #NEWLINE# engine2 = RedactionEngine ( [ RedactionRule ( 'password=' , 'password=".*"' , 'password="???"' ) ] ) #NEWLINE# engine3 = RedactionEngine ( [ RedactionRule ( 'ssn=' , 'ssn=\\d{3}-\\d{2}-\\d{4}' , 'ssn=XXX-XX-XXXX' ) ] ) #NEWLINE# assert_equal ( engine1 , engine2 ) #NEWLINE# assert_not_equal ( engine1 , engine3 )