Beispiel #1
0
 def test_server_reboot(self):
     '''
     Tests for issues a power-cycle operation on the managed server.
     This action is similar to pressing the power button on the system's
     front panel to power down and then power up the system.
     '''
     mock = MagicMock(return_value=True)
     with patch.object(drac, '__execute_cmd', mock):
         self.assertTrue(drac.server_reboot())
Beispiel #2
0
 def test_server_reboot(self):
     '''
     Tests for issues a power-cycle operation on the managed server.
     This action is similar to pressing the power button on the system's
     front panel to power down and then power up the system.
     '''
     mock = MagicMock(return_value=True)
     with patch.object(drac, '__execute_cmd', mock):
         self.assertTrue(drac.server_reboot())