Skip to content

Commit 489bb00

Browse files
justinemarieapanda
authored andcommitted
Add test for Bypass module (#509)
1 parent 375b2b6 commit 489bb00

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Crash Test #
2+
bp0 = Bypass()
3+
CRASH_TEST_INPUTS.append([bp0, 1, 1])
4+
5+
# Output Test #
6+
bp1 = Bypass()
7+
test_packet = gen_packet(scapy.TCP, '22.22.22.22', '22.22.22.22')
8+
OUTPUT_TEST_INPUTS.append([bp1,
9+
1, 1,
10+
[{'input_port': 0,
11+
'input_packet': test_packet,
12+
'output_port': 0,
13+
'output_packet': test_packet},
14+
{'input_port': 0,
15+
'input_packet': None,
16+
'output_port': 0,
17+
'output_packet': None}]])

0 commit comments

Comments
 (0)