コード例 #1
0
def test_int_to_dbyte_validation(arg):
    with pytest.raises(ValueError):
        utils.int_to_dbyte(arg)
コード例 #2
0
def test_int_to_dbyte_validation(arg):
    with pytest.raises(ValueError):
        utils.int_to_dbyte(arg)
コード例 #3
0
def test_int_to_dbyte(arg, expected):
    """Test the ``int_to_dbyte`` function."""
    assert utils.int_to_dbyte(arg) == expected
コード例 #4
0
def test_int_to_dbyte(arg, expected):
    """Test the ``int_to_dbyte`` function."""
    assert utils.int_to_dbyte(arg) == expected