def test_hasNotCommand(self): iq = self.iq self.assertFalse(command.hasCommand(iq))
def test_hasCommand(self): iq = self.iq cmd = Command(node='test', action='execute') iq.addChild(cmd.toElement()) self.assertTrue(command.hasCommand(iq))