(self)
| 118 | assert b.to_dict() == {"a": [1, 2]} |
| 119 | |
| 120 | def test_keep_keys_non_string_key(self): |
| 121 | b = Box({1: "a", "camelCase": 2}, camel_killer_box=True, camel_killer_box_keep_keys=True) |
| 122 | assert b[1] == "a" |
| 123 | assert b.camel_case == 2 |
| 124 | |
| 125 | def test_operators_with_boxes(self): |
| 126 | assert (Box(a=1) + Box(b=2)).to_dict() == {"a": 1, "b": 2} |