def testOriginalNotFoundError(self):

        db = current.db
        s3db = current.s3db
        deployment_settings = current.deployment_settings

        with self.assertRaises(KeyError):
            self.resource.merge(0, self.id2)

        # Check for proper rollback
        ptable = s3db.pr_person
        query = ptable._id.belongs((self.id1, self.id2))
        rows = db(query).select(ptable._id, limitby=(0, 2))
        self.assertEqual(len(rows), 0)

    # -------------------------------------------------------------------------
Initiate the logging, so that all the training output will be saved in a .log file.
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3resource.py/MergePersonsTests.testOriginalNotFoundError--crossover with--dataset/ETHPy150Open larsmaaloee/auxiliary-deep-generative-models/training/base.py/Train.init_logging