MCPcopy
hub / github.com/Textualize/rich / test_unpack

Function test_unpack

tests/test_padding.py:22–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def test_unpack():
23 assert Padding.unpack(3) == (3, 3, 3, 3)
24 assert Padding.unpack((3,)) == (3, 3, 3, 3)
25 assert Padding.unpack((3, 4)) == (3, 4, 3, 4)
26 assert Padding.unpack((3, 4, 5, 6)) == (3, 4, 5, 6)
27 with pytest.raises(ValueError):
28 Padding.unpack((1, 2, 3))
29
30
31def test_expand_false():

Callers

nothing calls this directly

Calls 1

unpackMethod · 0.80

Tested by

no test coverage detected