def loadExpectation(self, requestDict, group, APIShortName): requestCommand=expectationDict['command'] if not self.__isSupportedCommand(requestCommand): raise Exception(requestCommand, " request does not support") workingPath=self.getWorkingPath(group, APIShortName, requestCommand) expectationFile=self.getExpectationPath(workingPath) fileHandler=FileWrapper(expectationFile) if not fileHandler.isExist() or fileHandler.expired(): return {} return fileHandler.loadDictFromJsonFile()