Пример #1
0
def test__recursive_find__2_levels_dict__dict(mocker):
    keys = ["a", "C"]
    test_dict = __get_test_dict()
    value = utils.recursive_find(test_dict, keys)

    assert isinstance(value, dict)
Пример #2
0
def test__recursive_find__2_levels_value__value(mocker):
    keys = ["a", "b"]
    test_dict = __get_test_dict()
    value = utils.recursive_find(test_dict, keys)

    assert value == "c"
Пример #3
0
def test__recursive_find__3_levels_no_value__none(mocker):
    keys = ["a", "b", "c"]
    test_dict = __get_test_dict()
    value = utils.recursive_find(test_dict, keys)

    assert value is None