#NEWLINE# def test_values_equal_three( ) : #NEWLINE# #INDENT# v = ValuesEqual ( 'x' , 'y' , 'z' ) #NEWLINE# el = form ( dict ( x = 'a' , y = 'a' , z = 'a' ) ) #NEWLINE# assert v . validate ( el , None ) #NEWLINE# el = form ( dict ( x = 'a' , y = 'b' , z = 'c' ) ) #NEWLINE# assert ( not v . validate ( el , None ) ) #NEWLINE# eq_ ( el . errors , [ 'x, y and z do not match.' ] ) #NEWLINE# el = form ( dict ( x = 'a' ) ) #NEWLINE# assert ( not v . validate ( el , None ) ) #NEWLINE# eq_ ( el . errors , [ 'x, y and z do not match.' ] )