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"), {})
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'), {})
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"), {})