Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(166060)

Delta Between Two Patch Sets: Lib/test/test_ipaddress.py

Issue 20480: Add ipaddress property to get reverse DNS name
Left Patch Set: Created 5 years, 5 months ago
Right Patch Set: Created 5 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/ipaddress.py ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 # Copyright 2007 Google Inc. 1 # Copyright 2007 Google Inc.
2 # Licensed to PSF under a Contributor Agreement. 2 # Licensed to PSF under a Contributor Agreement.
3 3
4 """Unittest for ipaddress module.""" 4 """Unittest for ipaddress module."""
5 5
6 6
7 import unittest 7 import unittest
8 import re 8 import re
9 import contextlib 9 import contextlib
10 import operator 10 import operator
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 def testsixtofour(self): 1660 def testsixtofour(self):
1661 sixtofouraddr = ipaddress.ip_address('2002:ac1d:2d64::1') 1661 sixtofouraddr = ipaddress.ip_address('2002:ac1d:2d64::1')
1662 bad_addr = ipaddress.ip_address('2000:ac1d:2d64::1') 1662 bad_addr = ipaddress.ip_address('2000:ac1d:2d64::1')
1663 self.assertEqual(ipaddress.IPv4Address('172.29.45.100'), 1663 self.assertEqual(ipaddress.IPv4Address('172.29.45.100'),
1664 sixtofouraddr.sixtofour) 1664 sixtofouraddr.sixtofour)
1665 self.assertFalse(bad_addr.sixtofour) 1665 self.assertFalse(bad_addr.sixtofour)
1666 1666
1667 1667
1668 if __name__ == '__main__': 1668 if __name__ == '__main__':
1669 unittest.main() 1669 unittest.main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+