def test_unpack_bitmask_single_value(): with pytest.raises(TypeError): unpack_bitmask(1)
def test_unpack_bitmask(params): assert unpack_bitmask(params["input"]) == params["output"]