def test_to_byte_array_list_fail_neg(self, list_val):
"""
to_byte_array() with incompatible param:
:param list_val: random list of negative integers. -ValueError
"""
with pytest.raises(ValueError):
pointer, leng = to_byte_array(list_val)
评论列表
文章目录