Revision 7845b8c8 test/ganeti.netutils_unittest.py
b/test/ganeti.netutils_unittest.py | ||
---|---|---|
152 | 152 |
self.assertFalse(netutils.IPAddress.IsValid("1.1.1.256")) |
153 | 153 |
self.assertFalse(netutils.IPAddress.IsValid("a:g::1")) |
154 | 154 |
|
155 |
|
|
156 | 155 |
def testGetAddressFamily(self): |
157 | 156 |
fn = netutils.IPAddress.GetAddressFamily |
158 | 157 |
self.assertEqual(fn("127.0.0.1"), socket.AF_INET) |
Also available in: Unified diff