summaryrefslogtreecommitdiff
path: root/ipaddr_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix compatibility with Python 3vkh782016-01-051-14/+18
|
* Test pickling.Michael Shields2015-09-021-2/+9
| | | | Closes #106.
* Move trunk/ to root.Michael Shields2015-08-171-11/+127
|
* fixPeter Moody2011-11-291-3/+3
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@237 09200d28-7f98-11dd-ad27-0f66e57d2035
* fix for i84Peter Moody2011-11-241-0/+5
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@236 09200d28-7f98-11dd-ad27-0f66e57d2035
* patch from pmarksPeter Moody2011-11-241-23/+24
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@235 09200d28-7f98-11dd-ad27-0f66e57d2035
* patch from pmarks for i87Peter Moody2011-08-221-33/+73
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@225 09200d28-7f98-11dd-ad27-0f66e57d2035
* 2001:0::3:4:5:6:7:8 should be considered validPeter Moody2011-07-221-1/+1
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@224 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix warnings for python3.2Peter Moody2011-02-201-98/+98
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@220 09200d28-7f98-11dd-ad27-0f66e57d2035
* + add teredo test for i77Peter Moody2011-02-201-0/+7
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@219 09200d28-7f98-11dd-ad27-0f66e57d2035
* + bug in _is_shorthand_ip not correctly identifying shortened ips.Peter Moody2011-02-171-0/+4
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@218 09200d28-7f98-11dd-ad27-0f66e57d2035
* Fix issue 78.Michael Shields2011-02-081-4/+6
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@207 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix broken network/address comparisons.Peter Moody2011-02-081-3/+10
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@206 09200d28-7f98-11dd-ad27-0f66e57d2035
* + turn teredo and sixtofour into properties.Peter Moody2011-01-131-4/+4
| | | | | | + 2.1.7 release. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@203 09200d28-7f98-11dd-ad27-0f66e57d2035
* + add 6to4 to the ipv6 tunnel decoding.Peter Moody2011-01-121-0/+10
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@201 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix for i71Peter Moody2011-01-121-0/+8
| | | | | | | add support for pulling the teredo client and server addresses out of an ipv6 address. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@199 09200d28-7f98-11dd-ad27-0f66e57d2035
* + add unittest for fix for i70.Peter Moody2010-11-161-0/+4
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@197 09200d28-7f98-11dd-ad27-0f66e57d2035
* Additional unittests for Network compare/sort.Daniel Harrison2010-10-061-0/+15
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@195 09200d28-7f98-11dd-ad27-0f66e57d2035
* IPv6 with embedded IPv4 address not recognizedDaniel Harrison2010-10-061-0/+9
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@194 09200d28-7f98-11dd-ad27-0f66e57d2035
* r176 added constants without adding corresponding testcasesDaniel Harrison2010-10-041-0/+4
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@193 09200d28-7f98-11dd-ad27-0f66e57d2035
* Commentary typo fixDaniel Harrison2010-10-041-1/+1
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@192 09200d28-7f98-11dd-ad27-0f66e57d2035
* + ipaddr_test referred to old ipaddr.IP function.Peter Moody2010-09-191-3/+3
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@190 09200d28-7f98-11dd-ad27-0f66e57d2035
* + containment test should always return false on mixed-type tests.Peter Moody2010-08-231-0/+3
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@186 09200d28-7f98-11dd-ad27-0f66e57d2035
* Remove trailing whitespace.Michael Shields2010-08-161-1/+1
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@181 09200d28-7f98-11dd-ad27-0f66e57d2035
* Fix for issue 66, contributed by Lorenzo Colitti of Google.Michael Shields2010-08-161-0/+4
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@177 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix for issue61.Peter Moody2010-06-091-2/+4
| | | | | | | problem with like-ip'd network objects that had the same broadcast address. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@171 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix ipv6 subnet representation. (thanks to email from jaredPeter Moody2010-05-301-3/+5
| | | | | | to ipaddr-py-dev) git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@167 09200d28-7f98-11dd-ad27-0f66e57d2035
* + add masked() to _BaseNet to automatically mask outPeter Moody2010-05-101-0/+9
| | | | | | | the host bits of a network object. issue58. Reported by Robert Thomson. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@166 09200d28-7f98-11dd-ad27-0f66e57d2035
* + ensure network and address objects aren't equal.Peter Moody2010-04-291-5/+9
| | | | | | | (eg, IPNetwork('1.1.1.1/24') != IPAddress('1.1.1.1')) + whitespace cleanup. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@164 09200d28-7f98-11dd-ad27-0f66e57d2035
* + one more address_exclude cleanup, to make sure network/address exclusionsPeter Moody2010-04-291-0/+2
| | | | | | fail as expected. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@163 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix issue where address exclude would puke if you tried to excludePeter Moody2010-04-291-0/+1
| | | | | | and address from itself. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@162 09200d28-7f98-11dd-ad27-0f66e57d2035
* + issue 57, allow for integer addition with IPv4 and IPv6 Address objects.Peter Moody2010-04-041-0/+11
| | | | | | | this isn't ever meant to support adding two address object together nor addition to network objects. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@158 09200d28-7f98-11dd-ad27-0f66e57d2035
* + suggestions from mshields.Peter Moody2010-02-121-9/+9
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@141 09200d28-7f98-11dd-ad27-0f66e57d2035
* + make networks and addresses not sortable by default.Peter Moody2010-02-121-1/+22
| | | | | | | + provide a key function suitable for passing to sorted enabling the sorting. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@140 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fixing inconsisten behaviour WRT rich comparisons between ipv4 and ipv6Peter Moody2010-02-061-5/+24
| | | | | | objects. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@138 09200d28-7f98-11dd-ad27-0f66e57d2035
* + add IPv4Network().is_unspecified. issue52.Peter Moody2010-02-051-0/+2
| | | | | | (thanks to rep.dot.net for the bug report and patch). git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@137 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix for issue48; some problems with decoding mapped addresses.Peter Moody2010-02-041-0/+2
| | | | | | (thanks to rlaager for reporting) git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@134 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix for issue51; an errant reference to a non-existant variable.Peter Moody2010-02-021-0/+2
| | | | | | (thanks to Harry Bock) git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@131 09200d28-7f98-11dd-ad27-0f66e57d2035
* + clean up the exceptions raised by ipaddr.Peter Moody2009-11-291-41/+36
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@126 09200d28-7f98-11dd-ad27-0f66e57d2035
* + first stab at issue 39. the _valid_mask_octets aren't needed forPeter Moody2009-11-181-1/+2
| | | | | | ipv6 since netmasks aren't writtne in the same way. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@125 09200d28-7f98-11dd-ad27-0f66e57d2035
* + provide an iterator for looping through subnets. most usefulPeter Moody2009-11-021-0/+3
| | | | | | | for *large* subnets, like v6 subnets. patch by Marco Giutsi. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@124 09200d28-7f98-11dd-ad27-0f66e57d2035
* + unecessary sanitization check in IPv6Network.Peter Moody2009-10-301-0/+10
| | | | | | by Marco Guitsi. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@123 09200d28-7f98-11dd-ad27-0f66e57d2035
* + require that address or network objects be passed into __contains__ andPeter Moody2009-10-301-5/+1
| | | | | | | overlaps (as opposed to also accepting strings/ints). more consistent interface. easier to maintain, etc. Suggestion from Phillip. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@122 09200d28-7f98-11dd-ad27-0f66e57d2035
* + don't need the python2.6Peter Moody2009-10-091-1/+1
| | | | git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@120 09200d28-7f98-11dd-ad27-0f66e57d2035
* + the comparison tests when hashing don't make sense since __hash__ valuesPeter Moody2009-10-091-1/+1
| | | | | | are dependant upon version and platform. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@119 09200d28-7f98-11dd-ad27-0f66e57d2035
* + _BaseNet comparisons now ignore the ._ip attribute when doingPeter Moody2009-10-091-18/+2
| | | | | | comparisons/hashing/etc. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@118 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix up overlaps to be compliant with how IPy handles itPeter Moody2009-10-081-1/+4
| | | | | | | | (test self in other and other in self) + include ability to pass in a string rather than just another network object. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@117 09200d28-7f98-11dd-ad27-0f66e57d2035
* + make IPv4's _ip_int_from_string more robust.Peter Moody2009-10-081-0/+4
| | | | | | patch from mattimustang git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@116 09200d28-7f98-11dd-ad27-0f66e57d2035
* + fix for issue where v6 networks weren't being explodedPeter Moody2009-09-291-0/+2
| | | | | | | | properlly. reported by david moss. git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@115 09200d28-7f98-11dd-ad27-0f66e57d2035
* + add strict option to IPv?Network classes and the IPNetwork function.Peter Moody2009-09-261-0/+11
| | | | | | | | | | + add associated unittests + add overlaps to _BaseNet to test partial containment (compat with IPy) + add associated unittest git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@114 09200d28-7f98-11dd-ad27-0f66e57d2035