Commit 74af039e authored by Denis Bilenko's avatar Denis Bilenko

test__socket_dns.py: add TestIPv6 and TestBadPort

--HG--
extra : transplant_source : %F7I%C0%01SF%98%8A%83%7F%B7U%BEW%A5%5DY%AF%DE%D2
parent 8a5c3979
......@@ -220,5 +220,20 @@ class TestInterrupted(greentest.GenericWaitTestCase):
pass
class TestIPv6(TestCase):
def test(self):
#self.PORTS = ['http']
#self.getaddrinfo_args = [(), (AF_UNSPEC, ), (AF_INET, ), (AF_INET6, )]
self._test('aaaa.test-ipv6.com')
class TestBadPort(TestCase):
def test(self):
self.PORTS = ['xxxxxx']
self._test('www.google.com')
if __name__ == '__main__':
greentest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment