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