Exemple #1
0
 def test_raw_interface_configs(self):
     '''
     Test if it return raw configs for all interfaces.
     '''
     mock_cmd = MagicMock(return_value=ETHERNET_CONFIG)
     with patch.dict(win_ip.__salt__, {'cmd.run': mock_cmd}):
         self.assertEqual(win_ip.raw_interface_configs(), ETHERNET_CONFIG)
Exemple #2
0
 def test_raw_interface_configs(self):
     """
     Test if it return raw configs for all interfaces.
     """
     mock_cmd = MagicMock(return_value=ETHERNET_CONFIG)
     with patch.dict(win_ip.__salt__, {"cmd.run": mock_cmd}):
         self.assertEqual(win_ip.raw_interface_configs(), ETHERNET_CONFIG)