

@urlmatch(netloc='localhost:4502')
def upload_packages_mock(url, request):
    get_command_stack().append((url, request))
    if (request.method == 'POST'):
        if (url.path == '/crx/packmgr/service.jsp'):
            with open('tests/test_data/package_upload_response.xml') as f:
                return f.read()
    raise Exception(('Unknown method ' + request.method))

dataset/ETHPy150Open bjorns/aem-cmd/tests/tools/test_packages.py upload_packages_mock/original