test_flatten_key_dict_view
Testing of the FlattenKeyDictView class
Functions:
fd
fd(test_dict)
Test dictionary converted to a flatten form
Source code in tests/test_flatten_key_dict_view.py
14 15 16 17 | |
fd_sep_at
fd_sep_at(test_dict)
Test dictionary converted to a flatten form with custom flat key separator @
Source code in tests/test_flatten_key_dict_view.py
20 21 22 23 | |
test_contains
test_contains(fd)
Test the in operator
Source code in tests/test_flatten_key_dict_view.py
26 27 28 29 30 31 32 33 34 | |
test_custom_key_separator
test_custom_key_separator(fd_sep_at)
Test using @ as the custom key separator
Source code in tests/test_flatten_key_dict_view.py
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | |
test_delitem
test_delitem(fd)
Test removing keys from the dict
Source code in tests/test_flatten_key_dict_view.py
63 64 65 66 67 68 69 70 | |
test_dict
test_dict()
Default simple nested dictionary
Source code in tests/test_flatten_key_dict_view.py
8 9 10 11 | |
test_getitem
test_getitem(fd)
Test accessing dict keys
Source code in tests/test_flatten_key_dict_view.py
37 38 39 40 41 42 43 44 45 | |
test_keys
test_keys(fd)
Test returning of flatten keys
Source code in tests/test_flatten_key_dict_view.py
101 102 103 104 | |
test_raise_exception
test_raise_exception(fd)
Test corner cases with invalid or non-existing sub-keys
Source code in tests/test_flatten_key_dict_view.py
107 108 109 110 111 112 113 114 | |
test_setitem
test_setitem(fd)
Test changing values of dict keys
Source code in tests/test_flatten_key_dict_view.py
48 49 50 51 52 53 54 55 56 57 58 59 60 | |