(self)
| 268 | assert len(wide.splitlines()) < len(narrow.splitlines()) |
| 269 | |
| 270 | def test_dir(self): |
| 271 | a = Box(test_dict, camel_killer_box=True) |
| 272 | assert "key1" in dir(a) |
| 273 | assert "not$allowed" not in dir(a) |
| 274 | assert "key4" in a["key 2"] |
| 275 | for item in ("to_yaml", "to_dict", "to_json"): |
| 276 | assert item in dir(a) |
| 277 | |
| 278 | assert a.big_camel == "hi" |
| 279 | assert "big_camel" in dir(a) |
| 280 | |
| 281 | def test_update(self): |
| 282 | a = Box(test_dict) |