Skip to content

Commit 9bac460

Browse files
committed
Test ok soccket packet.
1 parent 9ebdb7c commit 9bac460

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_framers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,3 +402,9 @@ def _handle_response(_reply):
402402
framer = ModbusSocketFramer(ClientDecoder())
403403
framer.processIncomingPacket(message, _handle_response, slave=0)
404404
assert response_ok, "Response is valid, but not accepted"
405+
406+
message = bytearray(b"\x00\x01\x00\x00\x00\x0b\x01\x03\x08\x00\xb5\x12\x2f\x37\x21\x00\x03")
407+
response_ok = False
408+
framer = ModbusSocketFramer(ClientDecoder())
409+
framer.processIncomingPacket(message, _handle_response, slave=0)
410+
assert response_ok, "Response is valid, but not accepted"

0 commit comments

Comments
 (0)