'Test adding a command note.'

def testAddNote(self):

    iq = self.Iq()
    iq['type'] = 'result'
    iq['command']['node'] = 'foo'
    iq['command'].add_note('Danger!', ntype='warning')
    self.check(iq, '\n                                        <iq    id="0"    type="result">\n                                                <command    xmlns="http://jabber.org/protocol/commands"\n                                                                                    node="foo">\n                                                        <note    type="warning">Danger!</note>\n                                                </command>\n                                        </iq>\n                                ')
