def get_dict_value(self, d, key_path):
    'Verify each key in the key_path array is in contained in each\n           dictionary within "d". Assert if any key isn\'t in the\n           corresponding dictionary. This is handy for grabbing values from VS\n           Code response dictionary like getting\n           response[\'body\'][\'stackFrames\']\n        '
    value = d
    for key in key_path:
        if (key in value):
            value = value[key]
        else:
            self.assertTrue((key in value), ('key "%s" from key_path "%s" not in "%s"' % (key, key_path, d)))
    return value
Verify each key in the key_path array is in contained in each
dictionary within "d". Assert if any key isn't in the
corresponding dictionary. This is handy for grabbing values from VS
Code response dictionary like getting
response['body']['stackFrames']
def get_dict_value(self, d, key_path):
    'Verify each key in the key_path array is in contained in each\n           dictionary within "d". Assert if any key isn\'t in the\n           corresponding dictionary. This is handy for grabbing values from VS\n           Code response dictionary like getting\n           response[\'body\'][\'stackFrames\']\n        '
    value = d
    for key in key_path:
        if (key in value):
            value = value[key]
        else:
            self.assertTrue((key in value), ('key "%s" from key_path "%s" not in "%s"' % (key, key_path, d)))
    return value