Exemplo n.º 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"), {})
Exemplo n.º 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'), {})
Exemplo n.º 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'), {})
Exemplo n.º 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"), {})