(self)
| 447 | assert bx.key1 == "value1" |
| 448 | |
| 449 | def test_from_yaml(self): |
| 450 | yaml = YAML(typ="safe") |
| 451 | with StringIO() as sio: |
| 452 | yaml.dump(test_dict, sio) |
| 453 | data = sio.getvalue() |
| 454 | bx = Box.from_yaml(data, conversion_box=False, default_box=True) |
| 455 | assert isinstance(bx, Box) |
| 456 | assert bx.key1 == "value1" |
| 457 | assert bx.Key_2 == Box() |
| 458 | |
| 459 | def test_from_yaml_box_dots_dotted_key_before_non_dotted(self): |
| 460 | """ |