h0arry / ipaddr-py

Automatically exported from code.google.com/p/ipaddr-py
0 stars 0 forks source link

__le__/__ge__ don't work as expected #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ipaddr.IPNetwork('1.1.1.1') <= ipaddr.IPNetwork('1.1.1.1')
False

2.
3.

What is the expected output? What do you see instead?

True

Please use labels and text to provide additional information.

Original issue reported on code.google.com by pmo...@google.com on 29 Aug 2009 at 9:14

GoogleCodeExporter commented 9 years ago
fixed in r99 (accidentally said that was for issue31)

Original comment by pmo...@google.com on 29 Aug 2009 at 9:56

GoogleCodeExporter commented 9 years ago
Hi Peter,

(oops original comment was on issue 31)

I think there is a small bug in the tests:

+        self.assertTrue(ipaddr.IPNetwork('::1'), ipaddr.IPNetwork('::1'))
+        self.assertTrue(ipaddr.IPNetwork('::1'), ipaddr.IPNetwork('::2'))

should probably be:

+        self.assertTrue(ipaddr.IPNetwork('::1') <= ipaddr.IPNetwork('::1'))
+        self.assertTrue(ipaddr.IPNetwork('::1') <= ipaddr.IPNetwork('::2'))

Original comment by mattimus...@gmail.com on 30 Aug 2009 at 10:51