void () { PyRemotePathMapper mapper = new PyRemotePathMapper(); mapper.addMapping("C:\\Users\\J.S.\\.PyCharm\\system\\remote_sources\\-114", "/development/lib", PyPathMappingType.SYS_PATH); mapper.addMapping("C:\\Users\\J.S.\\.PyCharm\\system\\remote_sources\\-27315", "/development/src/project/module", PyPathMappingType.SYS_PATH); assertFalse(mapper.isEmpty()); assertEquals("C:/Users/J.S./.PyCharm/system/remote_sources/-27315/main.py", mapper.convertToLocal("/development/src/project/module/main.py")); // although remote path specified here is shorter than previously added sys.path mapping this mapping has higher priority mapper.addMapping("C:\\Users\\J.S.\\development\\src\\project", "/development/src/project", PyPathMappingType.REPLICATED_FOLDER); assertConvertsOneToAnother(mapper, "C:\\Users\\J.S.\\development\\src\\project", "/development/src/project"); assertConvertsOneToAnother(mapper, "C:/Users/J.S./development/src/project/module/main.py", "/development/src/project/module/main.py"); assertConvertsOneToAnother(mapper, "C:/Users/J.S./.PyCharm/system/remote_sources/-114/json/decoder.py", "/development/lib/json/decoder.py"); assertConvertsOneToAnother(mapper, "C:/Users/J.S./.PyCharm/system/remote_sources/-114/json/decoder.py", "/development/lib/json/decoder.py"); }