Пример #1
0
 def test_hasNotCommand(self):
     iq = self.iq
     self.assertFalse(command.hasCommand(iq))
Пример #2
0
    def test_hasCommand(self):
        iq = self.iq
        cmd = Command(node='test', action='execute')
        iq.addChild(cmd.toElement())

        self.assertTrue(command.hasCommand(iq))