def test_ip_addrs6(self): ''' Test for returns a list of IPv6 addresses assigned to the host. ''' with patch.object(salt.utils.network, 'ip_addrs6', return_value=['A']): self.assertListEqual(network.ip_addrs6('int', 'include'), ['A'])
def test_ip_addrs6(self): """ Test for returns a list of IPv6 addresses assigned to the host. """ with patch.dict(network.__utils__, {"network.ip_addrs6": MagicMock(return_value=["A"])}): self.assertListEqual(network.ip_addrs6("int", "include"), ["A"])
def test_ip_addrs6(self): """ Test for returns a list of IPv6 addresses assigned to the host. """ with patch.object(salt.utils.network, "ip_addrs6", return_value=["A"]): self.assertListEqual(network.ip_addrs6("int", "include"), ["A"])