def test_int_to_dbyte_validation(arg): with pytest.raises(ValueError): utils.int_to_dbyte(arg)
def test_int_to_dbyte(arg, expected): """Test the ``int_to_dbyte`` function.""" assert utils.int_to_dbyte(arg) == expected