示例#1
0
 def test_interface_ip(self):
     """
     Test for return the inet address for a given interface
     """
     with patch.dict(network.__utils__,
                     {"network.interface_ip": MagicMock(return_value={})}):
         self.assertDictEqual(network.interface_ip("iface"), {})
示例#2
0
 def test_interface_ip(self):
     '''
     Test for return the inet address for a given interface
     '''
     with patch.object(salt.utils.network, 'interface_ip', return_value={}):
         self.assertDictEqual(network.interface_ip('iface'), {})
示例#3
0
 def test_interface_ip(self):
     '''
     Test for return the inet address for a given interface
     '''
     with patch.object(salt.utils.network, 'interface_ip', return_value={}):
         self.assertDictEqual(network.interface_ip('iface'), {})
示例#4
0
 def test_interface_ip(self):
     """
     Test for return the inet address for a given interface
     """
     with patch.object(salt.utils.network, "interface_ip", return_value={}):
         self.assertDictEqual(network.interface_ip("iface"), {})