From 70606fb3a398d65e39fc9b0018e7ac3799f748ab Mon Sep 17 00:00:00 2001 From: Auke Willem Oosterhoff Date: Thu, 21 Jan 2016 11:53:00 +0100 Subject: [PATCH] #28 Remove unused code. --- .../system/responses/test_succesful_responses.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/system/responses/test_succesful_responses.py b/tests/system/responses/test_succesful_responses.py index 18a8eb5..9a51541 100644 --- a/tests/system/responses/test_succesful_responses.py +++ b/tests/system/responses/test_succesful_responses.py @@ -1,23 +1,8 @@ import pytest -import struct from umodbus.client import tcp -def unpack_single_bit_values(response): - byte_count = struct.unpack('>B', response[8:9])[0] - - fmt = '>' + ('B' * byte_count) - return struct.unpack(fmt, response[9:]) - - -def unpack_multi_bit_values(response): - byte_count = struct.unpack('>B', response[8:9])[0] - - fmt = '>' + ('H' * (byte_count // 2)) - return struct.unpack(fmt, response[9:]) - - @pytest.mark.parametrize('function', [ tcp.read_coils, tcp.read_discrete_inputs,