Lines Matching refs:matchJSONKey
276 def find_in_json(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
281 res = find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey)
286 res = find_in_json_other(res, outputJSONVal, matchJSONVal, matchJSONKey)
294 def find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
311 matchJSONKey)
315 for matchJSONKey, matchJSONVal in matchJSONVal.items():
317 if matchJSONKey not in outputJSONVal:
319 failmsg = failmsg.format(matchJSONKey, matchJSONVal, outputJSONVal)
331 if type(outputJSONVal) == dict and (type(outputJSONVal[matchJSONKey]) == dict or
332 type(outputJSONVal[matchJSONKey]) == list):
334 res = find_in_json(res, outputJSONVal[matchJSONKey], matchJSONVal, matchJSONKey)
337 res = find_in_json_other(res, outputJSONVal, matchJSONVal, matchJSONKey)
339 res = find_in_json(res, outputJSONVal, matchJSONVal, matchJSONKey)
342 def find_in_json_other(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
343 if matchJSONKey in outputJSONVal:
344 if matchJSONVal != outputJSONVal[matchJSONKey]:
346 … failmsg = failmsg.format(matchJSONKey, matchJSONVal, outputJSONVal[matchJSONKey], outputJSONVal)