示例#1
0
 def setUp(self):
     logging.basicConfig(level=logging.DEBUG)
     self.engine = TaskEngine()
     self.ctx = Context(None)
     self.ctx.bind('taskengine', self.engine)
     self.engine.start(self.ctx)
     self.logger = logging.getLogger(__name__)
示例#2
0
def context():
    return Context(MockAgent())