#NEWLINE# def test_typeCheckTooManyValues( self ) : #NEWLINE# #INDENT# '\n        Expect an exception if too many values are set, depending on type.\n        ' #NEWLINE# field = data_form . Field ( fieldType = 'list-single' , var = 'test' , values = [ 'value1' , 'value2' ] ) #NEWLINE# self . assertRaises ( data_form . TooManyValuesError , field . typeCheck )