'Test using command notes.'

def testNotes(self):

    iq = self.Iq()
    iq['type'] = 'result'
    iq['command']['node'] = 'foo'
    notes = [('info', 'Interesting...'), ('warning', 'Danger!'), ('error', "I    can't    let    you    do    that")]
    iq['command']['notes'] = notes
    self.failUnless((iq['command']['notes'] == notes), ("Notes    don't    match:    %s    %s" % (notes, iq['command']['notes'])))
    self.check(iq, '\n                                        <iq    id="0"    type="result">\n                                                <command    xmlns="http://jabber.org/protocol/commands"\n                                                                                    node="foo">\n                                                        <note    type="info">Interesting...</note>\n                                                        <note    type="warning">Danger!</note>\n                                                        <note    type="error">I    can\'t    let    you    do    that</note>\n                                                </command>\n                                        </iq>\n                                ')
