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

Method test_remove_one_position

test/test_comments.py:129–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 assert bx.get_comment("b") is None
128
129 def test_remove_one_position(self):
130 bx = Box(a=1)
131 bx.set_comment("a", "x")
132 bx.set_comment("a", "y", position="before")
133 bx.set_comment("a", None)
134 assert bx.get_comment("a") == {"before": "y"}
135
136 def test_hash_prefix_is_optional(self):
137 bx = Box(a=1)

Callers

nothing calls this directly

Calls 3

set_commentMethod · 0.95
get_commentMethod · 0.95
BoxClass · 0.90

Tested by

no test coverage detected