Commit 3a32db05 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

[master] split up test

From to help troubleshoot later.

Okayed via jabber.
parent 1b828baa
......@@ -761,6 +761,7 @@ class TestStatsHttpd(unittest.TestCase):
self.assertEqual(ht.address_family, socket.AF_INET)
self.assertTrue(isinstance(ht.socket, socket.socket))
def test_httpd_anyIPv4(self):
# any address (IPv4)
server_addresses = get_availaddr(address='')
self.stats_httpd = MyStatsHttpd(server_addresses)
......@@ -769,6 +770,7 @@ class TestStatsHttpd(unittest.TestCase):
self.assertTrue(isinstance(ht.socket, socket.socket))
def test_httpd_anyIPv6(self):
# any address (IPv6)
if self.ipv6_enabled:
server_addresses = get_availaddr(address='::')
......@@ -778,6 +780,7 @@ class TestStatsHttpd(unittest.TestCase):
self.assertTrue(isinstance(ht.socket, socket.socket))
def test_httpd_failed(self):
# existent hostname
self.assertRaises(stats_httpd.HttpServerError, MyStatsHttpd,
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