Example #1
0
 def test_is_disabled(self):
     '''
     Test if it returns `True` if interface is disabled, otherwise `False`.
     '''
     mock_cmd = MagicMock(return_value=ETHERNET_ENABLE)
     with patch.dict(win_ip.__salt__, {'cmd.run': mock_cmd}):
         self.assertFalse(win_ip.is_disabled('Ethernet'))
Example #2
0
 def test_is_disabled(self):
     """
     Test if it returns `True` if interface is disabled, otherwise `False`.
     """
     mock_cmd = MagicMock(return_value=ETHERNET_ENABLE)
     with patch.dict(win_ip.__salt__, {"cmd.run": mock_cmd}):
         self.assertFalse(win_ip.is_disabled("Ethernet"))