adjust tests

This commit is contained in:
Maximilian Hils 2014-08-10 16:20:04 +02:00
parent 858b0af0bb
commit a193c267f3
2 changed files with 3 additions and 3 deletions

View File

@ -11,5 +11,5 @@ class TestLookup:
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)
assert not pf.lookup("192.168.1.112", 40000, d)
assert not pf.lookup("192.168.1.111", 40001, d)
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)

View File

@ -480,7 +480,7 @@ class TestKillResponse(tservers.HTTPProxTest):
class EResolver(tservers.TResolver):
def original_addr(self, sock):
return None
raise RuntimeError("Could not resolve original destination.")
class TestTransparentResolveError(tservers.TransparentProxTest):