#NEWLINE# def test_iterkeys( self ) : #NEWLINE# #INDENT# '\n        Iterating over the keys of a form yields all field names.\n        ' #NEWLINE# fields = [ data_form . Field ( var = 'botname' , value = 'The Jabber Bot' ) , data_form . Field ( 'boolean' , var = 'public' , value = True ) , data_form . Field ( 'list-multi' , var = 'features' , values = [ 'news' , 'search' ] ) ] #NEWLINE# form = data_form . Form ( 'submit' , fields = fields ) #NEWLINE# self . assertEqual ( set ( [ 'botname' , 'public' , 'features' ] ) , set ( form . iterkeys ( ) ) )