#!/usr/bin/env python3 import sys import os sys.path.append('/home/rwiegand/skripte') # Test if the method is properly accessible def test_method(): try: from rdp_client import RDPClient import logging logging.basicConfig(level=logging.INFO) # Create a test instance client = RDPClient() print('Testing _get_best_monitor_selection method...') # Test the method result = client._get_best_monitor_selection(2) print(f'✅ Method works! Result: {result}') # Test combined resolution method too combined_res = client._get_monitors_combined_resolution(result) print(f'✅ Combined resolution method works! Result: {combined_res}') return True except Exception as e: print(f'❌ Error: {e}') import traceback traceback.print_exc() return False if __name__ == "__main__": print("=== Testing RDPClient Methods ===") success = test_method() if success: print("✅ All methods working correctly!") else: print("❌ There are still issues to fix.")