Skip to content

Commit

Permalink
Add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlizio committed Nov 30, 2023
1 parent 6c8a7a6 commit 4d1d0b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/frame_leave_learn_state_cfm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ class TestFrameLeaveLearnStateConfirmation(unittest.TestCase):

EXAMPLE_FRAME = b"\x00\x04\x00\x0f\x00\x0b"

def test_bytes(self):
def test_bytes(self) -> None:
"""Test FrameLeaveLearnStateConfirmation."""
frame = FrameLeaveLearnStateConfirmation()
self.assertEqual(bytes(frame), self.EXAMPLE_FRAME)

def test_frame_from_raw(self):
def test_frame_from_raw(self) -> None:
"""Test parse FrameLeaveLearnStateConfirmation from raw."""
frame = frame_from_raw(self.EXAMPLE_FRAME)
self.assertTrue(isinstance(frame, FrameLeaveLearnStateConfirmation))

def test_str(self):
def test_str(self) -> None:
"""Test string representation of FrameLeaveLearnStateConfirmation."""
frame = FrameLeaveLearnStateConfirmation()
self.assertEqual(str(frame), '<FrameLeaveLearnStateConfirmation status="LeaveLearnStateConfirmationStatus.FAILED"/>')

0 comments on commit 4d1d0b7

Please sign in to comment.