Browse Source

Comment about test that requirement

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac353@3238 e5f2f494-b856-4b98-b285-d166d9295462
Michal Vaner 14 years ago
parent
commit
aadeb42c4b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/python/isc/net/tests/parse_test.py

+ 4 - 0
src/lib/python/isc/net/tests/parse_test.py

@@ -64,6 +64,10 @@ class TestCheckIP(unittest.TestCase):
         the same.
         the same.
         """
         """
         self.assertEqual("192.0.2.0", str(addr_parse("192.0.2.0")))
         self.assertEqual("192.0.2.0", str(addr_parse("192.0.2.0")))
+        # The OS could return something else than canonical form, in which
+        # case the test would fail. However, I do not see an easy way to fix
+        # the test, so it is left this way unless someone finds an OS that
+        # does return something else.
         self.assertEqual("2001:bd8::", str(addr_parse("2001:bd8::")))
         self.assertEqual("2001:bd8::", str(addr_parse("2001:bd8::")))
         # It should strip the unnecesarry parts
         # It should strip the unnecesarry parts
         self.assertEqual("2001:bd8::", str(addr_parse("2001:bd8:0:0:0:0:0:0")))
         self.assertEqual("2001:bd8::", str(addr_parse("2001:bd8:0:0:0:0:0:0")))