'Testing iq/pubsub/subscription/subscribe-options stanzas'

def testOptionalSettings(self):

    iq = self.Iq()
    iq['pubsub']['subscription']['suboptions']['required'] = True
    iq['pubsub']['subscription']['node'] = 'testnode    alsdkjfas'
    iq['pubsub']['subscription']['jid'] = 'fritzy@netflint.net/sleekxmpp'
    iq['pubsub']['subscription']['subscription'] = 'unconfigured'
    self.check(iq, '\n                                        <iq    id="0">\n                                                <pubsub    xmlns="http://jabber.org/protocol/pubsub">\n                                                        <subscription    node="testnode    alsdkjfas"    jid="fritzy@netflint.net/sleekxmpp"    subscription="unconfigured">\n                                                        <subscribe-options>\n                                                                <required    />\n                                                                </subscribe-options>\n                                                        </subscription>\n                                                </pubsub>\n                                        </iq>')
