mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-06 10:05:22 +03:00
assertIs instead of assertEqual for class comparison Fix test failures in custom Netmiko driver tests by using assertIs instead of assertEqual when comparing class objects registered in CLASS_MAPPER. The issue occurred because test files add project root to sys.path, allowing the same module to be imported with different paths (e.g., gns3_copilot... vs gns3server.agent.gns3_copilot...). assertEqual compares class __module__ attributes which differ based on import path, while assertIs checks object identity which correctly identifies them as the same class. Modified files: - test_huawei_ce.py - test_ruijie_telnet.py - test_vpcs_telnet.py