From 33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 15 Feb 2016 14:58:46 +0100 Subject: move mitmproxy --- test/test_platform_pf.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 test/test_platform_pf.py (limited to 'test/test_platform_pf.py') diff --git a/test/test_platform_pf.py b/test/test_platform_pf.py deleted file mode 100644 index 8994ee0d..00000000 --- a/test/test_platform_pf.py +++ /dev/null @@ -1,27 +0,0 @@ -import sys -from libmproxy.platform import pf -from . import tutils - - -class TestLookup: - - def test_simple(self): - if sys.platform == "freebsd10": - p = tutils.test_data.path("data/pf02") - d = open(p, "rb").read() - else: - p = tutils.test_data.path("data/pf01") - d = open(p, "rb").read() - assert pf.lookup("192.168.1.111", 40000, d) == ("5.5.5.5", 80) - tutils.raises( - "Could not resolve original destination", - pf.lookup, - "192.168.1.112", - 40000, - d) - tutils.raises( - "Could not resolve original destination", - pf.lookup, - "192.168.1.111", - 40001, - d) -- cgit v1.2.3