MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_camel_killer_box

Method test_camel_killer_box

test/test_box.py:678–689  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 2

BoxClass · 0.90
copyMethod · 0.80

Tested by

no test coverage detected