Commit e9ef1273 authored by Robin Obůrka's avatar Robin Obůrka

tests: Enhance test for missing payload

The test was incorrect and it doesn't trigger the right exception.
parent dae4335e
......@@ -18,7 +18,8 @@ def test_missing_type(good_msg):
def test_missing_payload(good_msg):
with pytest.raises(sn.InvalidMsgError):
(t, p) = sn.parse_msg(good_msg[0])
data = (good_msg[0],)
(t, p) = sn.parse_msg(data)
def test_broken_payload(broken_msg):
with pytest.raises(sn.InvalidMsgError):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment