Exemplo n.º 1
0
 def test_in_subnet(self):
     '''
     Test for returns True if host is within specified
      subnet, otherwise False.
     '''
     with patch.object(salt.utils.network, 'in_subnet', return_value={}):
         self.assertDictEqual(network.in_subnet('iface'), {})
Exemplo n.º 2
0
 def test_in_subnet(self):
     '''
     Test for returns True if host is within specified
      subnet, otherwise False.
     '''
     with patch.object(salt.utils.network, 'in_subnet', return_value={}):
         self.assertDictEqual(network.in_subnet('iface'), {})
Exemplo n.º 3
0
 def test_in_subnet(self):
     """
     Test for returns True if host is within specified
      subnet, otherwise False.
     """
     with patch.object(salt.utils.network, "in_subnet", return_value={}):
         self.assertDictEqual(network.in_subnet("iface"), {})
Exemplo n.º 4
0
 def test_in_subnet(self):
     """
     Test for returns True if host is within specified
      subnet, otherwise False.
     """
     with patch.dict(network.__utils__,
                     {"network.in_subnet": MagicMock(return_value={})}):
         self.assertDictEqual(network.in_subnet("iface"), {})