@unit_testing_only
def spoof_submission(submit_url, body):
    client = Client()
    f = StringIO(body.encode('utf-8'))
    f.name = 'form.xml'
    response = client.post(submit_url, {
        'xml_submission_file': f,
    })
    try:
        return response['X-CommCareHQ-FormID']
    except __HOLE__:
        return None
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/couchforms/util.py/spoof_submission