def test_generate_instance_from_schema_deleted(self, _, __):
        build_ids_and_versions = {self.app_id: 4}
        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)

        self.assertEqual(len(instance.tables), 2)

        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([x 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)
Load entries
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/export/tests/test_export_instance.py/TestExportInstanceGeneration.test_generate_instance_from_schema_deleted--crossover with--dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/Directory._load_entries