Skip to content

Commit

Permalink
frame: Fix UA stringification tests
Browse files Browse the repository at this point in the history
Seems this was copied from a UI frame test, UI frames have a PID field,
but UA does not.  Nor do they have a payload.
  • Loading branch information
sjlongland committed May 4, 2024
1 parent 94b20e5 commit 073fa88
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test_frame/test_uframe.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/usr/bin/env python3

from aioax25.frame import (
AX25DisconnectModeFrame,
AX25Frame,
AX25UnnumberedInformationFrame,
AX25FrameRejectFrame,
AX25UnnumberedFrame,
AX25DisconnectModeFrame,
AX25SetAsyncBalancedModeFrame,
AX25SetAsyncBalancedModeExtendedFrame,
AX25TestFrame,
AX25UnnumberedAcknowledgeFrame,
AX25UnnumberedFrame,
AX25UnnumberedInformationFrame,
)

from ..hex import from_hex, hex_cmp
Expand Down Expand Up @@ -686,12 +687,10 @@ def test_ua_str():
destination="VK4BWI",
source="VK4MSL",
cr=True,
pid=0xF0,
)
assert str(frame) == (
"AX25UnnumberedAcknowledgeFrame VK4MSL>VK4BWI: "
"Control=0x03 P/F=False Modifier=0x03 PID=0xf0\n"
"Payload=b'This is a test'"
"Control=0x73 P/F=True Modifier=0x63"
)


Expand Down

0 comments on commit 073fa88

Please sign in to comment.