예제 #1
0
 def test_subnets(self):
     """
     Test for returns a list of subnets to which the host belongs
     """
     with patch.dict(network.__utils__,
                     {"network.subnets": MagicMock(return_value={})}):
         self.assertDictEqual(network.subnets(), {})
예제 #2
0
 def test_subnets(self):
     '''
     Test for returns a list of subnets to which the host belongs
     '''
     with patch.object(salt.utils.network, 'subnets', return_value={}):
         self.assertDictEqual(network.subnets(), {})
예제 #3
0
파일: network_test.py 프로젝트: DaveQB/salt
 def test_subnets(self):
     '''
     Test for returns a list of subnets to which the host belongs
     '''
     with patch.object(salt.utils.network, 'subnets', return_value={}):
         self.assertDictEqual(network.subnets(), {})