'Test merge'

def testMerge(self):

    assertEqual = self.assertEqual
    assertNotEqual = self.assertNotEqual
    assertTrue = self.assertTrue
    assertFalse = self.assertFalse
    success = self.resource.merge(self.id1, self.id2)
    assertTrue(success)
    (location1, location2) = self.get_records()
    assertNotEqual(location1, None)
    assertNotEqual(location2, None)
    assertFalse(location1.deleted)
    assertTrue(location2.deleted)
    assertEqual(str(self.id1), str(location2.deleted_rb))
    assertEqual(location1.name, 'TestLocation')
    assertEqual(location2.name, 'TestLocation')
