class TestCommandChain(object):
    """
        测试命令
    """
    __commandChain = None

    def __init__(self):
        self.__commandChain = CommandChain()

    def test(self):
        self.__commandChain.loadCmdList("list.txt")
        self.__commandChain.execute()
Ejemplo n.º 2
0
# -*- coding: utf-8 -*-
from CommandChain import CommandChain
# from testCommandChain import TestCommandChain

# 测试
#t = TestCommandChain()
#t.test()
cmds = CommandChain()
cmds.loadCmdList("usecase_drive\case_01.txt");
cmds.execute()
 def __init__(self):
     self.__commandChain = CommandChain()