示例#1
0
def test_dbyte_to_int_validation(low_byte, high_byte):
    with pytest.raises(ValueError):
        utils.dbyte_to_int(low_byte, high_byte)
def test_dbyte_to_int_validation(low_byte, high_byte):
    with pytest.raises(ValueError):
        utils.dbyte_to_int(low_byte, high_byte)
示例#3
0
def test_dbyte_to_int(args, expected):
    """Test the ``dbyte_to_int`` function."""
    assert utils.dbyte_to_int(*args) == expected
def test_dbyte_to_int(args, expected):
    """Test the ``dbyte_to_int`` function."""
    assert utils.dbyte_to_int(*args) == expected