'Testing setting form values'

def testSetValues(self):

    msg = self.Message()
    form = msg['form']
    form.add_field(var='foo', ftype='text-single')
    form.add_field(var='bar', ftype='list-multi')
    form.setValues({'foo': 'Foo!', 'bar': ['a', 'b']})
    self.check(msg, '\n                                        <message>\n                                                <x    xmlns="jabber:x:data"    type="form">\n                                                        <field    var="foo"    type="text-single">\n                                                                <value>Foo!</value>\n                                                        </field>\n                                                        <field    var="bar"    type="list-multi">\n                                                                <value>a</value>\n                                                                <value>b</value>\n                                                        </field>\n                                                </x>\n                                        </message>')
