'Test using the action attribute.'

def testAction(self):

    iq = self.Iq()
    iq['type'] = 'set'
    iq['command']['node'] = 'foo'
    iq['command']['action'] = 'execute'
    self.failUnless((iq['command']['action'] == 'execute'))
    iq['command']['action'] = 'complete'
    self.failUnless((iq['command']['action'] == 'complete'))
    iq['command']['action'] = 'cancel'
    self.failUnless((iq['command']['action'] == 'cancel'))
