@run_with_all_backends
    def test_sync_usercase_custom_user_data_on_update(self):
        self.user.user_data = {
            'completed_training': 'no',
        }
        self.user.save()
        self.user.user_data = {
            'completed_training': 'yes',
        }
        sync_usercase(self.user)
        case = CaseAccessors(TEST_DOMAIN).get_case_by_domain_hq_user_id(self.user._id, USERCASE_TYPE)
        self.assertEquals(case.dynamic_case_properties()['completed_training'], 'yes')

    # @run_with_all_backends
Custom user data should be synced when the user is updated
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/callcenter/tests/test_utils.py/CallCenterUtilsUserCaseTests.test_sync_usercase_custom_user_data_on_update