Skip to content

Commit

Permalink
#24 Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeTux committed Jan 14, 2016
1 parent fea8937 commit 2388d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_tcp.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import struct

from umodbus.client.tcp import (create_adu, create_mbap_header,
from umodbus.client.tcp import (create_request_adu, create_mbap_header,
read_discrete_inputs, read_holding_registers,
read_input_registers)

Expand All @@ -23,7 +23,7 @@ def test_create_adu():
""" Validate MBAP header of ADU and check if ADU contains correct PDU. """
pdu = b'\x01'
slave_id = 1
adu = create_adu(slave_id, pdu)
adu = create_request_adu(slave_id, pdu)

# 9 is length MBAP (7 bytes) with length of PDU (1 byte)
assert len(adu) == 8
Expand Down

0 comments on commit 2388d0f

Please sign in to comment.