From 9cb16c8f6dd0e1e6aeaa33692f367f9fde0307d1 Mon Sep 17 00:00:00 2001 From: Miguel Guarniz Date: Thu, 28 Jul 2022 11:41:30 -0400 Subject: [PATCH] remove duplicate test Signed-off-by: Miguel Guarniz --- test/mitmproxy/test_eventsequence.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/test/mitmproxy/test_eventsequence.py b/test/mitmproxy/test_eventsequence.py index 9382a8f44..ac9ebd97e 100644 --- a/test/mitmproxy/test_eventsequence.py +++ b/test/mitmproxy/test_eventsequence.py @@ -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)