'Testing getting config from full create'

def testCreateConfigGet(self):

    iq = self.Iq()
    iq['to'] = 'pubsub.asdf'
    iq['from'] = 'fritzy@asdf/87292ede-524d-4117-9076-d934ed3db8e7'
    iq['type'] = 'set'
    iq['id'] = 'E'
    pub = iq['pubsub']
    pub['create']['node'] = 'testnode2'
    pub['configure']['form']['type'] = 'submit'
    pub['configure']['form'].setFields([('FORM_TYPE', {'type': 'hidden', 'value': 'http://jabber.org/protocol/pubsub#node_config'}), ('pubsub#node_type', {'type': 'list-single', 'label': 'Select    the    node    type', 'value': 'leaf'}), ('pubsub#title', {'type': 'text-single', 'label': 'A    friendly    name    for    the    node'}), ('pubsub#deliver_notifications', {'type': 'boolean', 'label': 'Deliver    event    notifications', 'value': True}), ('pubsub#deliver_payloads', {'type': 'boolean', 'label': 'Deliver    payloads    with    event    notifications', 'value': True}), ('pubsub#notify_config', {'type': 'boolean', 'label': 'Notify    subscribers    when    the    node    configuration    changes'}), ('pubsub#notify_delete', {'type': 'boolean', 'label': 'Notify    subscribers    when    the    node    is    deleted'}), ('pubsub#notify_retract', {'type': 'boolean', 'label': 'Notify    subscribers    when    items    are    removed    from    the    node', 'value': True}), ('pubsub#notify_sub', {'type': 'boolean', 'label': 'Notify    owners    about    new    subscribers    and    unsubscribes'}), ('pubsub#persist_items', {'type': 'boolean', 'label': 'Persist    items    in    storage'}), ('pubsub#max_items', {'type': 'text-single', 'label': 'Max    #    of    items    to    persist', 'value': '10'}), ('pubsub#subscribe', {'type': 'boolean', 'label': 'Whether    to    allow    subscriptions', 'value': True}), ('pubsub#access_model', {'type': 'list-single', 'label': 'Specify    the    subscriber    model', 'value': 'open'}), ('pubsub#publish_model', {'type': 'list-single', 'label': 'Specify    the    publisher    model', 'value': 'publishers'}), ('pubsub#send_last_published_item', {'type': 'list-single', 'label': 'Send    last    published    item', 'value': 'never'}), ('pubsub#presence_based_delivery', {'type': 'boolean', 'label': 'Deliver    notification    only    to    available    users'})])
    self.check(iq, '\n                                        <iq    to="pubsub.asdf"    type="set"    id="E"    from="fritzy@asdf/87292ede-524d-4117-9076-d934ed3db8e7">\n                                                <pubsub    xmlns="http://jabber.org/protocol/pubsub">\n                                                        <create    node="testnode2"    />\n                                                        <configure>\n                                                                <x    xmlns="jabber:x:data"    type="submit">\n                                                                        <field    var="FORM_TYPE">\n                                                                                <value>http://jabber.org/protocol/pubsub#node_config</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#node_type">\n                                                                                <value>leaf</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#title"    />\n                                                                        <field    var="pubsub#deliver_notifications">\n                                                                                <value>1</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#deliver_payloads">\n                                                                                <value>1</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#notify_config"    />\n                                                                        <field    var="pubsub#notify_delete"    />\n                                                                        <field    var="pubsub#notify_retract">\n                                                                                <value>1</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#notify_sub"    />\n                                                                        <field    var="pubsub#persist_items"    />\n                                                                        <field    var="pubsub#max_items">\n                                                                                <value>10</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#subscribe">\n                                                                                <value>1</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#access_model">\n                                                                                <value>open</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#publish_model">\n                                                                                <value>publishers</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#send_last_published_item">\n                                                                                <value>never</value>\n                                                                        </field>\n                                                                        <field    var="pubsub#presence_based_delivery"    />\n                                                                </x>\n                                                        </configure>\n                                                </pubsub>\n                                        </iq>')
