Unit test fix

This commit is contained in:
Ronald van Zantvoort 2015-05-01 19:34:08 +02:00
parent 5346a07e6e
commit d81fbc4bc3

View File

@ -272,7 +272,7 @@ class NetworkTestCase(TestCase):
'''
Test for Check if the given IP address is a private address
'''
with patch.object(salt.utils.network.IPv4Address, 'is_private',
with patch.object(salt.ext.ipaddress.IPv4Address, 'is_private',
return_value=True):
self.assertTrue(network.is_private('0.0.0.0'))
@ -280,7 +280,7 @@ class NetworkTestCase(TestCase):
'''
Test for Check if the given IP address is a loopback address
'''
with patch.object(salt.utils.network.IPv4Address, 'is_loopback',
with patch.object(salt.ext.ipaddress.IPv4Address, 'is_loopback',
return_value=False):
self.assertFalse(network.is_private('0.0.0.0'))