'testing iq/pubsub/subscribe stanzas'

def testSubscribe(self):

    iq = self.Iq()
    iq['pubsub']['subscribe']['options']
    iq['pubsub']['subscribe']['node'] = 'cheese'
    iq['pubsub']['subscribe']['jid'] = 'fritzy@netflint.net/sleekxmpp'
    iq['pubsub']['subscribe']['options']['node'] = 'cheese'
    iq['pubsub']['subscribe']['options']['jid'] = 'fritzy@netflint.net/sleekxmpp'
    form = xep_0004.Form()
    form.addField('pubsub#title', ftype='text-single', value='this    thing    is    awesome')
    iq['pubsub']['subscribe']['options']['options'] = form
    self.check(iq, '\n                                <iq    id="0">\n                                        <pubsub    xmlns="http://jabber.org/protocol/pubsub">\n                                                <subscribe    node="cheese"    jid="fritzy@netflint.net/sleekxmpp">\n                                                        <options    node="cheese"    jid="fritzy@netflint.net/sleekxmpp">\n                                                                <x    xmlns="jabber:x:data"    type="submit">\n                                                                        <field    var="pubsub#title">\n                                                                                <value>this    thing    is    awesome</value>\n                                                                        </field>\n                                                                </x>\n                                                        </options>\n                                                </subscribe>\n                                        </pubsub>\n                                </iq>', use_values=False)
