Commit 408b2448 authored by Olivier Cros's avatar Olivier Cros

Fix failing tests

In order to correct some test errors generated by IPv6 support on Neo. These
errors were dued to mis-implemented tests, which were attempted wrong type
of exceptions.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2655 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 0cdbf0ea
......@@ -37,7 +37,7 @@ class UtilTests(NeoUnitTestBase):
def test_getAddressType(self):
""" Get the type on an IP Address """
self.assertRaises(ValueError, parseNodeAddress, '', 0)
self.assertRaises(ValueError, getAddressType, ('', 0))
address_type = getAddressType(('::1', 0))
self.assertEqual(address_type, socket.AF_INET6)
address_type = getAddressType(('0.0.0.0', 0))
......
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