This is a convenient way for tests to assert that some nested dicts (like a parsed json) has a particular key/value somewhere in it. For example: assert_dict_has(config, "toplevel.subitem.key", True) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| imports.py | ||
This is a convenient way for tests to assert that some nested dicts (like a parsed json) has a particular key/value somewhere in it. For example: assert_dict_has(config, "toplevel.subitem.key", True) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| imports.py | ||