(self)
| 317 | assert len(wide.splitlines()) < len(narrow.splitlines()) |
| 318 | |
| 319 | def test_dir(self): |
| 320 | a = Box(test_dict, camel_killer_box=True) |
| 321 | assert "key1" in dir(a) |
| 322 | assert "not$allowed" not in dir(a) |
| 323 | assert "key4" in a["key 2"] |
| 324 | for item in ("to_yaml", "to_dict", "to_json"): |
| 325 | assert item in dir(a) |
| 326 | |
| 327 | assert a.big_camel == "hi" |
| 328 | assert "big_camel" in dir(a) |
| 329 | |
| 330 | def test_update(self): |
| 331 | a = Box(test_dict) |