Merge pull request #23633 from jayeshka/win_network-2015.5-unit-test

made changes to test_interfaces function.
This commit is contained in:
Justin Findlay 2015-05-13 00:51:07 -06:00
commit bc8faf1543

View file

@ -177,7 +177,9 @@ class WinNetworkTestCase(TestCase):
'''
Test if it return information about all the interfaces on the minion
'''
self.assertTrue(win_network.interfaces())
with patch.object(salt.utils.network, 'win_interfaces',
MagicMock(return_value=True)):
self.assertTrue(win_network.interfaces())
# 'hw_addr' function tests: 1