

def build_app_with_bad_source_and_good_json(self):
    '\n        Generates an app with a form that has a converted json xmlns but an unconverted source\n        '
    form_name = 'Untitled Form'
    app = Application.new_app(DOMAIN, 'Normal App', APP_V2)
    module = app.add_module(Module.new_module('New Module', lang='en'))
    form_source = self.get_xml('form_template').format(xmlns='undefined', name=form_name)
    form = module.new_form(form_name, 'en', form_source)
    form_source.xmlns = 'not-at-all-undefined'
    app.save()
    return (form, app)

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/cleanup/tests/test_fix_forms_with_missing_xmlns.py TestFixFormsWithMissingXmlns.build_app_with_bad_source_and_good_json/VarMisuse@80/168 `form`->`form_source`