예제 #1
0
 def testRewriteDestPorts(self):
     match = Match('tcp', '--destination-port 1234')
     self.assertEqual(match.options(), {'dport': ['1234']})
예제 #2
0
 def testRewriteDestPorts(self):
     match = Match('multiport', '--destination-ports 1,2,3')
     self.assertEqual(match.options(), {'dports': ['1,2,3']})
예제 #3
0
 def testRewriteSourcePort(self):
     match = Match('tcp', '--source-port 1234')
     self.assertEqual(match.options(), {'sport': ['1234']})
예제 #4
0
 def testRewriteSourcePorts(self):
     match = Match('multiport', '--source-ports 1,2,3')
     self.assertEqual(match.options(), {'sports': ['1,2,3']})
예제 #5
0
 def testRewriteDestPort(self):
     print('Running Test Rewrite Dest Port...')
     match = Match('tcp', '--destination-port 1234')
     print('\tMatch: ' + str(match))
     self.assertEqual(match.options(), {'dport': ['1234']})
     print('...Done')
예제 #6
0
 def testRewriteDestPorts(self):
     print('Runnning Test Rewrite Dest Ports...')
     match = Match('multiport', '--destination-ports 1,2,3')
     print('\tMatch: ' + str(match))
     self.assertEqual(match.options(), {'dports': ['1,2,3']})
     print('...Done')
예제 #7
0
파일: test.py 프로젝트: mankuthimma/junXon
 def testRewriteDestPorts(self):
     match = Match("multiport", "--destination-ports 1,2,3")
     self.assertEqual(match.options(), {"dports": ["1,2,3"]})
예제 #8
0
 def testRewriteSourcePort(self):
     print('Match Test Case Set:\nRunning Test Rewrite Source Port...')
     match = Match('tcp', '--source-port 1234')
     print('\tMatch: ' + str(match))
     self.assertEqual(match.options(), {'sport': ['1234']})
     print('...Done')
예제 #9
0
파일: test.py 프로젝트: mankuthimma/junXon
 def testRewriteSourcePorts(self):
     match = Match("multiport", "--source-ports 1,2,3")
     self.assertEqual(match.options(), {"sports": ["1,2,3"]})
예제 #10
0
파일: test.py 프로젝트: mankuthimma/junXon
 def testRewriteDestPorts(self):
     match = Match("tcp", "--destination-port 1234")
     self.assertEqual(match.options(), {"dport": ["1234"]})
예제 #11
0
파일: test.py 프로젝트: mankuthimma/junXon
 def testRewriteSourcePort(self):
     match = Match("tcp", "--source-port 1234")
     self.assertEqual(match.options(), {"sport": ["1234"]})
예제 #12
0
 def testRewriteDestPorts(self):
     match = Match('multiport', '--destination-ports 1,2,3')
     self.assertEqual(match.options(), {'dports': ['1,2,3']})
예제 #13
0
 def testRewriteDestPorts(self):
     match = Match('tcp', '--destination-port 1234')
     self.assertEqual(match.options(), {'dport': ['1234']})
예제 #14
0
 def testRewriteSourcePorts(self):
     match = Match('multiport', '--source-ports 1,2,3')
     self.assertEqual(match.options(), {'sports': ['1,2,3']})
예제 #15
0
 def testRewriteSourcePort(self):
     match = Match('tcp', '--source-port 1234')
     self.assertEqual(match.options(), {'sport': ['1234']})