#NEWLINE# def test_equality( self ) : #NEWLINE# #INDENT# m1 = ValidatedSource ( 1 , 2 ) #NEWLINE# self . assertEqual ( m1 , ValidatedSource ( 1 , 2 ) ) #NEWLINE# self . assertEqual ( m1 , ValidatedSource ( 1 , 4 ) ) #NEWLINE# self . assertEqual ( m1 , ValidatedSource ( 1 , 'nine' ) ) #NEWLINE# m2 = ValidatedSource ( 'hi' , False ) #NEWLINE# self . assertEqual ( m2 , ValidatedSource ( 'hi' , False ) ) #NEWLINE# self . assertEqual ( self , ValidatedSource ( 'hi' , True ) ) #NEWLINE# self . assertEqual ( m2 , ValidatedSource ( 'hi' , 'ignored' ) )