Пример #1
0
 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'])
Пример #2
0
 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"])
Пример #3
0
 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'])
Пример #4
0
 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"])