Skip to content

Commit 1c3d21f

Browse files
committed
Extent testing
1 parent 3661b1b commit 1c3d21f

File tree

2 files changed

+406
-8
lines changed

2 files changed

+406
-8
lines changed

tests/stick_test_data.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
b"0019" + b"0098765432101234" + b"7777777777777777" + b"06",
9797
),
9898
b"\x05\x05\x03\x030018009876543210123407CE1E\r\n": (
99-
"SCAN 07",
99+
"SWITCH 01",
100100
b"000000C1", # Success ack
101101
b"0019" + b"0098765432101234" + b"8888888888888888" + b"07",
102102
),
@@ -658,6 +658,19 @@
658658
+ b"4E084590" # fw_ver
659659
+ b"06", # node_type (Scan)
660660
),
661+
b"\x05\x05\x03\x03002388888888888888886C1F\r\n": (
662+
"Node info for 8888888888888888",
663+
b"000000C1", # Success ack
664+
b"0024" # msg_id
665+
+ b"8888888888888888" # mac
666+
+ b"22026A68" # datetime
667+
+ b"00000000" # log address
668+
+ b"00" # relay
669+
+ b"01" # hz
670+
+ b"000000070051" # hw_ver
671+
+ b"4E08478A" # fw_ver
672+
+ b"03", # node_type (Switch)
673+
),
661674
b"\x05\x05\x03\x03001200987654321012340A72\r\n": (
662675
"Power usage for 0098765432101234",
663676
b"000000C1", # Success ack

0 commit comments

Comments
 (0)