예제 #1
0
 def saveExpectation(self, expectationDict, 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)
     return fileHandler.saveDictAsJsonFile(expectationDict)