Ejemplo n.º 1
0
 def test_server_hardreset(self):
     '''
     Tests for performs a reset (reboot) operation on the managed server.
     '''
     mock = MagicMock(return_value=True)
     with patch.object(drac, '__execute_cmd', mock):
         self.assertTrue(drac.server_hardreset())
Ejemplo n.º 2
0
 def test_server_hardreset(self):
     '''
     Tests for performs a reset (reboot) operation on the managed server.
     '''
     mock = MagicMock(return_value=True)
     with patch.object(drac, '__execute_cmd', mock):
         self.assertTrue(drac.server_hardreset())