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())