Commit babc4537 authored by Denis Bilenko's avatar Denis Bilenko

test__socket_dns.py: add TestIPv6 and TestBadPort

parent fcd1c001
......@@ -184,5 +184,20 @@ class TestInternational(TestCase):
self._test(u'президент.рф')
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