| 676 | assert bx5.inner.noneInner is None |
| 677 | |
| 678 | def test_camel_killer_box(self): |
| 679 | td = extended_test_dict.copy() |
| 680 | td["CamelCase"] = "Item" |
| 681 | td["321CamelCaseFever!"] = "Safe" |
| 682 | |
| 683 | kill_box = Box(td, camel_killer_box=True, conversion_box=False) |
| 684 | assert kill_box.camel_case == "Item" |
| 685 | assert kill_box["321CamelCaseFever!"] == "Safe" |
| 686 | |
| 687 | con_kill_box = Box(td, conversion_box=True, camel_killer_box=True) |
| 688 | assert con_kill_box.camel_case == "Item" |
| 689 | assert con_kill_box.x321_camel_case_fever == "Safe" |
| 690 | |
| 691 | def test_default_and_camel_killer_box(self): |
| 692 | td = extended_test_dict.copy() |