Skip to content

Commit

Permalink
add property unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Oct 8, 2023
1 parent 38b727c commit 0d6184f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def test_basic(self):
params=self.params,
pdu_conf=self.pdu_conf,
)
self.assertEqual(finish_pdu.finished_params, self.params)
self.assertEqual(finish_pdu.direction, Direction.TOWARDS_SENDER)
self.assertEqual(finish_pdu.delivery_code, DeliveryCode.DATA_COMPLETE)
self.assertEqual(
Expand All @@ -60,6 +61,7 @@ def test_unpack_basic(self):
)
finish_pdu_raw = finish_pdu.pack()
finish_pdu_unpacked = FinishedPdu.unpack(data=finish_pdu_raw)
self.assertEqual(finish_pdu_unpacked.finished_params, self.params)
self.assertEqual(finish_pdu_unpacked.delivery_code, DeliveryCode.DATA_COMPLETE)
self.assertEqual(finish_pdu_unpacked.direction, Direction.TOWARDS_SENDER)
self.assertEqual(
Expand Down

0 comments on commit 0d6184f

Please sign in to comment.