@run_with_all_backends
    def test_sync_by_user_id(self):
        # create a case with an empty owner but valid user id
        case_id = self.factory.create_case(owner_id='', user_id=USER_ID).case_id
        restore_config = RestoreConfig(self.project, user=self.user)
        payload = restore_config.get_payload().as_string()
        self.assertTrue(case_id in payload)
        sync_log = synclog_from_restore_payload(payload)
        self.assertTrue(sync_log.phone_is_holding_case(case_id))
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/casexml/apps/phone/tests/test_sync_mode.py/SyncTokenUpdateTest.test_sync_by_user_id/original