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

Function _box_state

test/test_audit_sync.py:560–579  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

558
559
560def _box_state(b):
561 return (
562 type(b),
563 b.to_dict(),
564 b.get_comment("Top"),
565 b.get_comment(None),
566 b.sub.get_comment("k"),
567 b.lst.get_comment(1),
568 b.lst[0].get_comment("i"),
569 b.lst.get_comment(None),
570 type(b.sub),
571 type(b.lst),
572 type(b.lst[0]),
573 {k: v for k, v in b._box_config.items() if not k.startswith("__") and k != "box_dots_exclude"},
574 b._box_config["box_dots_exclude"] and b._box_config["box_dots_exclude"].pattern,
575 b.sub._box_config["box_dots"],
576 b.sub._box_config["frozen_box"],
577 b.lst.box_options.get("box_dots"),
578 b.lst[0]._box_config["box_dots"],
579 )
580
581
582def test_deepcopy_of_frozen_box_is_frozen_all_the_way_down():

Callers 1

test_box_round_tripFunction · 0.85

Calls 4

to_dictMethod · 0.80
getMethod · 0.80
get_commentMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected