From 3f1f4f365817097fb3c43608f92f8cc1aa3ea3f5 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Tue, 22 Sep 2015 19:58:29 +1000 Subject: [PATCH] Extra DNS test --- test_proxy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_proxy.py b/test_proxy.py index 5f0a70f..b9d4f81 100755 --- a/test_proxy.py +++ b/test_proxy.py @@ -151,6 +151,10 @@ class TestRequestNegotiation(SocketHelper, unittest.TestCase): self.send(b"\x05\x01\x00\x03\x09localhost" + ECHO_PORT_B) self.assertRequestSuccess() + def test_dns_remote_success(self): + self.send(b"\x05\x01\x00\x03\x0bexample.com\x00P") + self.assertRequestSuccess() + def test_dns_bad_port(self): self.send(b"\x05\x01\x00\x03\x09localhost\xff\xff") self.assertRequestFail(4) -- 2.39.2