@@ -0,0 +1,1308 @@
+from django.core.management import call_command%0Afrom django.test import TestCase, override_settings%0A%0Afrom custom.enikshay.nikshay_datamigration.tests.utils import NikshayMigrationMixin%0A%0A%0A@override_settings(TESTS_SHOULD_USE_SQL_BACKEND=True)%0Aclass TestDeleteMigratedCases(NikshayMigrationMixin, TestCase):%0A%0A    def test_deletion(self):%0A        self.outcome.HIVStatus = None%0A        self.outcome.save()%0A        call_command('create_enikshay_cases', self.domain)%0A        assert len(self.case_accessor.get_case_ids_in_domain(type='person')) == 1%0A        assert len(self.case_accessor.get_case_ids_in_domain(type='occurrence')) == 1%0A        episode_case_ids = self.case_accessor.get_case_ids_in_domain(type='episode')%0A        assert len(episode_case_ids) == 1%0A        assert len(self.case_accessor.get_case_ids_in_domain(type='drtb-hiv-referral')) == 1%0A%0A        call_command('delete_migrated_cases', self.domain, *episode_case_ids)%0A%0A        self.assertListEqual(self.case_accessor.get_case_ids_in_domain(type='person'), %5B%5D)%0A        self.assertListEqual(self.case_accessor.get_case_ids_in_domain(type='occurrence'), %5B%5D)%0A        self.assertListEqual(self.case_accessor.get_case_ids_in_domain(type='episode'), %5B%5D)%0A        self.assertListEqual(self.case_accessor.get_case_ids_in_domain(type='drtb-hiv-referral'), %5B%5D)%0A

add failing test