#NEWLINE# def test_equality( self ) : #NEWLINE# #INDENT# rule1 = RedactionRule ( 'password=' , 'password=".*"' , 'password="???"' ) #NEWLINE# rule2 = RedactionRule ( 'password=' , 'password=".*"' , 'password="???"' ) #NEWLINE# rule3 = ( RedactionRule ( 'ssn=' , 'ssn=\\d{3}-\\d{2}-\\d{4}' , 'ssn=XXX-XX-XXXX' ) , ) #NEWLINE# assert_equal ( rule3 , rule2 ) #NEWLINE# assert_not_equal ( rule1 , rule3 )