Ejemplo n.º 1
0
def test_interfaces():
    """
    Test if it return information about all the interfaces on the minion
    """
    with patch.object(salt.utils.network, "win_interfaces",
                      MagicMock(return_value=True)):
        assert win_network.interfaces()
Ejemplo n.º 2
0
 def test_interfaces(self):
     '''
     Test if it return information about all the interfaces on the minion
     '''
     with patch.object(salt.utils.network, 'win_interfaces',
                       MagicMock(return_value=True)):
         self.assertTrue(win_network.interfaces())
Ejemplo n.º 3
0
 def test_interfaces(self):
     '''
     Test if it return information about all the interfaces on the minion
     '''
     with patch.object(salt.utils.network, 'win_interfaces',
                       MagicMock(return_value=True)):
         self.assertTrue(win_network.interfaces())
Ejemplo n.º 4
0
 def test_interfaces(self):
     '''
     Test if it return information about all the interfaces on the minion
     '''
     self.assertTrue(win_network.interfaces())