Lines Matching refs:matchJSONKey
298 def find_in_json(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
303 res = find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey)
308 res = find_in_json_other(res, outputJSONVal, matchJSONVal, matchJSONKey)
316 def find_in_json_list(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
333 matchJSONKey)
337 for matchJSONKey, matchJSONVal in matchJSONVal.items():
339 if matchJSONKey not in outputJSONVal:
341 failmsg = failmsg.format(matchJSONKey, matchJSONVal, outputJSONVal)
353 if type(outputJSONVal) == dict and (type(outputJSONVal[matchJSONKey]) == dict or
354 type(outputJSONVal[matchJSONKey]) == list):
356 res = find_in_json(res, outputJSONVal[matchJSONKey], matchJSONVal, matchJSONKey)
359 res = find_in_json_other(res, outputJSONVal, matchJSONVal, matchJSONKey)
361 res = find_in_json(res, outputJSONVal, matchJSONVal, matchJSONKey)
364 def find_in_json_other(res, outputJSONVal, matchJSONVal, matchJSONKey=None): argument
365 if matchJSONKey in outputJSONVal:
366 if matchJSONVal != outputJSONVal[matchJSONKey]:
368 … failmsg = failmsg.format(matchJSONKey, matchJSONVal, outputJSONVal[matchJSONKey], outputJSONVal)