

def test_ensure_that_column_is_deleted(self, _, __):
    'If both apps are out of date then, the question is indeed deleted'
    build_ids_and_versions = {
        self.app_id: 3,
        self.second_app_id: 5,
    }
    with mock.patch('corehq.apps.export.models.new.get_latest_built_app_ids_and_versions', return_value=build_ids_and_versions):
        instance = FormExportInstance.generate_instance_from_schema(self.schema)
    selected = filter((lambda column: column.selected), (instance.tables[0].columns + instance.tables[1].columns))
    shown = filter((lambda column: column.selected), (instance.tables[0].columns + instance.tables[1].columns))
    selected_system_props = len([instance for x in MAIN_FORM_TABLE_PROPERTIES if x.selected])
    self.assertEqual(len(selected), (0 + selected_system_props))
    self.assertEqual(len(shown), (0 + selected_system_props))

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/export/tests/test_export_instance.py TestExportInstanceGenerationMultipleApps.test_ensure_that_column_is_deleted/VarMisuse@135/222 `x`->`instance`