made changes to test_interfaces function.

This commit is contained in:
Jayesh Kariya 2015-05-13 11:09:40 +05:30
parent 7df3579bbc
commit 0936e1d386

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