(self)
| 496 | assert bx.key1 == "value1" |
| 497 | |
| 498 | def test_from_yaml(self): |
| 499 | yaml = YAML(typ="safe") |
| 500 | with StringIO() as sio: |
| 501 | yaml.dump(test_dict, sio) |
| 502 | data = sio.getvalue() |
| 503 | bx = Box.from_yaml(data, conversion_box=False, default_box=True) |
| 504 | assert isinstance(bx, Box) |
| 505 | assert bx.key1 == "value1" |
| 506 | assert bx.Key_2 == Box() |
| 507 | |
| 508 | def test_from_yaml_box_dots_dotted_key_before_non_dotted(self): |
| 509 | """ |