def hexbin(inp, out):
    ifp = HexBin(inp)
    finfo = ifp.FInfo
    if not out:
        out = ifp.FName

    ofp = open(out, 'wb')
    # XXXX Do translation on non-mac systems
    while 1:
        d = ifp.read(128000)
        if not d: break
        ofp.write(d)
    ofp.close()
    ifp.close_data()

    d = ifp.read_rsrc(128000)
    if d:
        ofp = openrsrc(out, 'wb')
        ofp.write(d)
        while 1:
            d = ifp.read_rsrc(128000)
            if not d: break
            ofp.write(d)
        ofp.close()

    ifp.close()
Confirm that updating a deactivated user also updates the user case.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/binhex.py/hexbin--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/callcenter/tests/test_utils.py/CallCenterUtilsUserCaseTests.test_update_deactivated_user