We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67595a1 commit 0e0d094Copy full SHA for 0e0d094
1 file changed
tests/unit/test_lite.py
@@ -32,7 +32,8 @@ def test_generator(target_length):
32
)
33
def test_split_command(command: bytearray):
34
tion = TionLiteFamily(mac="")
35
- splitted = tion.split_command(request=command)
+ splitted = tion.split_command(request=command.copy())
36
+ joined = bytearray()
37
38
for i in range(len(splitted)):
39
assert len(splitted[i]) <= 20
@@ -45,6 +46,8 @@ def test_split_command(command: bytearray):
45
46
assert splitted[i][0] == TionLiteFamily.END_PACKET_ID
47
else:
48
assert splitted[i][0] == TionLiteFamily.MIDDLE_PACKET_ID
49
+ joined += splitted[i][1:]
50
51
+ assert command[1:] == joined
52
53
0 commit comments