Skip to content

Commit

Permalink
tests: check LppFrame.add_by_type()
Browse files Browse the repository at this point in the history
  • Loading branch information
smlng committed Apr 13, 2021
1 parent f69e2fd commit 12275b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cayennelpp/tests/test_lpp_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ def test_iterator(frame_hlt):
assert counter == len(frame_hlt)


def test_add_by_type(frame):
with pytest.raises(TypeError):
frame.add_by_type(0, 1, 42)


def test_get_by_type(frame_hlt):
h_list = frame_hlt.get_by_type(104)
assert len(h_list) == 1
Expand Down

0 comments on commit 12275b9

Please sign in to comment.