remove duplicate test

Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
This commit is contained in:
Miguel Guarniz 2022-07-28 11:41:30 -04:00 committed by Maximilian Hils
parent 8a175b3754
commit 9cb16c8f6d
1 changed files with 0 additions and 14 deletions

View File

@ -100,17 +100,3 @@ def test_dns(resp, err):
def test_invalid():
with pytest.raises(TypeError):
next(eventsequence.iterate(42))
@pytest.mark.parametrize("err", [False, True])
def test_udp_flow(err):
f = tflow.tudpflow(err=err)
i = eventsequence.iterate(f)
assert isinstance(next(i), layers.udp.UdpStartHook)
assert isinstance(next(i), layers.udp.UdpMessageHook)
assert len(f.messages) == 1
assert isinstance(next(i), layers.udp.UdpStartHook)
assert isinstance(next(i), layers.udp.UdpMessageHook)
assert len(f.messages) == 2
if err:
assert isinstance(next(i), layers.udp.UdpErrorHook)