From c26e62240a03427b79b79da2ff5bb0ffc9f095ca Mon Sep 17 00:00:00 2001 From: Kkevsterrr Date: Fri, 13 Dec 2019 08:06:58 -0500 Subject: [PATCH] Coverage for quotes in DNA --- tests/test_strategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_strategy.py b/tests/test_strategy.py index 1e16920..9e129e9 100644 --- a/tests/test_strategy.py +++ b/tests/test_strategy.py @@ -57,7 +57,7 @@ def test_run(): packets = strat4.act_on_packet(p1, logger) # Will fail with scapy 2.4.2 if packet is reparsed - strat5 = actions.utils.parse("[TCP:options-eol:]-tamper{TCP:load:replace:o}(tamper{TCP:dataofs:replace:11},)-| \/", logger) + strat5 = actions.utils.parse("\"[TCP:options-eol:]-tamper{TCP:load:replace:o}(tamper{TCP:dataofs:replace:11},)-| \/\"", logger) p1 = actions.packet.Packet(IP(src="127.0.0.1", dst="127.0.0.1")/TCP(sport=2222, dport=3333, seq=100, ack=100, flags="S")) packets = strat5.act_on_packet(p1, logger)