def test_combine_multi_args(): '''Resolve combine multiple paths''' pyver = str(sys.version[:3]) expected = { 'PATH': [{ 'win': data_path('home', 'testenv', 'Scripts'), 'linux': data_path('home', 'testenv', 'bin'), 'osx': data_path('home', 'testenv', 'bin') }[platform]], 'CPENV_ACTIVE_MODULES': [], 'UNRESOLVED_PATH': '$NOVAR', 'RESOLVED_PATH': data_path('home', 'testenv', 'resolved'), 'PLATFORM_PATH': 'environ_' + platform, 'MULTI_PLATFORM_PATH': [ 'nonplat', pyver + '/' + platform + 'a', pyver + '/' + platform + 'b', ] } r = Resolver('testenv', 'testmod') r.resolve() combined = r.combine() for k in expected.keys(): if isinstance(expected[k], list): assert expected[k] == combined[k] continue assert os.path.normpath(expected[k]) == os.path.normpath(combined[k])