#NEWLINE# def test_values( self ) : #NEWLINE# #INDENT# '\n        Getting the values of a form yields a list of field values.\n        ' #NEWLINE# fields = [ data_form . Field ( var = 'botname' , value = 'The Jabber Bot' ) , data_form . Field ( 'boolean' , var = 'public' , value = True ) ] #NEWLINE# form = data_form . Form ( 'submit' , fields = fields ) #NEWLINE# values = form . values ( ) #NEWLINE# self . assertIsInstance ( values , list ) #NEWLINE# self . assertEqual ( set ( [ 'The Jabber Bot' , True ] ) , set ( values ) )