[Neo-report] r2655 olivier.cros - /trunk/neo/tests/testUtil.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Feb 28 15:05:45 CET 2011
Author: olivier.cros
Date: Mon Feb 28 15:05:44 2011
New Revision: 2655
Log:
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.
Modified:
trunk/neo/tests/testUtil.py
Modified: trunk/neo/tests/testUtil.py
==============================================================================
--- trunk/neo/tests/testUtil.py [iso-8859-1] (original)
+++ trunk/neo/tests/testUtil.py [iso-8859-1] Mon Feb 28 15:05:44 2011
@@ -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))
More information about the Neo-report
mailing list