소스 검색

fixed the sality-tests. i just wish scapy performs sexual intercourse with itself.

Denis Waßmann 6 년 전
부모
커밋
62d76b41fd
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      code/Test/TestUtil.py
  2. 0 1
      code/Test/test_pcap_comparator.py

+ 2 - 2
code/Test/TestUtil.py

@@ -1,7 +1,7 @@
 #!/usr/bin/python3
 
-import scapy.all
 import scapy.packet
+import scapy.utils
 import shlex
 import subprocess
 import os
@@ -11,7 +11,7 @@ import os
 # where exactly pcaps differ
 class PcapComparator:
     def compare_files(self, file: str, other_file: str):
-        self.compare_captures(scapy.all.rdpcap(file), scapy.all.rdpcap(other_file))
+        self.compare_captures(scapy.utils.rdpcap(file), scapy.utils.rdpcap(other_file))
 
     def compare_captures(self, packetsA, packetsB):
         if len(packetsA) != len(packetsB):

+ 0 - 1
code/Test/test_pcap_comparator.py

@@ -6,7 +6,6 @@ import time
 import unittest
 import random
 
-import scapy.all
 from Test.TestUtil import PcapComparator, ID2TExecution
 
 # this dictionary holds the generators (functions) for the parameters