

def test_app_with_bad_form(self):
    (good_form, bad_form, good_xform, bad_xforms) = self.build_app_with_bad_form()
    self._refresh_pillow()
    call_command('fix_forms_with_missing_xmlns', '/dev/null', 'log.txt')
    with open('log.txt') as log_file:
        log = log_file.read()
        self.assertTrue((good_form.unique_id not in log))
        self.assertTrue((bad_form.unique_id in log))
        bad_xforms.assertTrue((good_xform._id not in log))
        for xform in bad_xforms:
            self.assertTrue((xform._id in log))
    self.assertNoMissingXmlnss()

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/cleanup/tests/test_fix_forms_with_missing_xmlns.py TestFixFormsWithMissingXmlns.test_app_with_bad_form/VarMisuse@86/144 `self`->`bad_xforms`