def testMergeReplace(self):

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

        success = self.resource.merge(self.id1, self.id2,
                                      replace = ["acronym", "website"])
        assertTrue(success)
        org1, org2 = self.get_records()

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

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

        assertEqual(org1.name, "Merge Test Organisation")
        assertEqual(org1.acronym, "MTOrg")
        assertEqual(org1.country, "UK")
        assertEqual(org1.website, "http://www.example.com")

        assertEqual(org2.name, "Merger Test Organisation")
        assertEqual(org2.acronym, "MTOrg")
        assertEqual(org2.country, "US")
        assertEqual(org2.website, "http://www.example.com")

    # -------------------------------------------------------------------------
Waits for changes on a job.
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3resource.py/MergeOrganisationsTests.testMergeReplace--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/JobPollCbBase.WaitForJobChangeOnce