(self)
| 260 | assert data == test_dict |
| 261 | |
| 262 | def test_to_yaml_width(self): |
| 263 | long_value = "a " * 80 # 160 character string |
| 264 | a = Box({"key": long_value.strip()}) |
| 265 | narrow = a.to_yaml(width=40) |
| 266 | wide = a.to_yaml(width=200) |
| 267 | # With width=200, the value should fit on fewer lines than width=40 |
| 268 | assert len(wide.splitlines()) < len(narrow.splitlines()) |
| 269 | |
| 270 | def test_dir(self): |
| 271 | a = Box(test_dict, camel_killer_box=True) |