Пример #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"), {})