def testMergeMissingDuplicateSE(self):

        assertEqual = self.assertEqual
        assertNotEqual = self.assertNotEqual
        assertTrue = self.assertTrue
        assertFalse = self.assertFalse

        resource = self.resource
        get_records = self.get_records

        org1, org2 = get_records()
        success = current.s3db.delete_super(resource.table, org2)
        assertTrue(success)
        org1, org2 = get_records()
        assertEqual(org2.pe_id, None)

        success = resource.merge(self.id1, self.id2)
        assertTrue(success)
        org1, org2 = get_records()

        assertNotEqual(org1, None)
        assertNotEqual(org2, None)

        assertFalse(org1.deleted)
        assertTrue(org2.deleted)
        assertEqual(str(self.id1), str(org2.deleted_rb))

        assertEqual(org2.pe_id, None)

    # -------------------------------------------------------------------------
Test merge where duplicate record lacks SEs
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3resource.py/MergeOrganisationsTests.testMergeMissingDuplicateSE