Skip to content

Commit

Permalink
#28 Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeTux committed Jan 21, 2016
1 parent 31ecc0d commit 70606fb
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions 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,
Expand Down

0 comments on commit 70606fb

Please sign in to comment.