def setUp(self):

        s3db = current.s3db

        ptable = s3db.pr_person
        ctable = s3db.pr_contact

        # Make sure the first record is the older record
        created_on = current.request.utcnow - datetime.timedelta(hours=1)

        person1 = Storage(first_name = "Test",
                          last_name = "UserDEDUP",
                          initials = "TU",
                          date_of_birth = datetime.date(1974, 4, 13),
                          created_on = created_on)
        person1_id = ptable.insert(**person1)
        person1.update(id=person1_id)
        s3db.update_super(ptable, person1)

        self.person1_id = person1_id
        self.pe1_id = s3db.pr_get_pe_id(ptable, person1_id)

        person2 = Storage(first_name = "Test",
                          last_name = "UserDEDUP",
                          initials = "OU",
                          date_of_birth = datetime.date(1974, 4, 23))
        person2_id = ptable.insert(**person2)
        person2.update(id=person2_id)
        s3db.update_super(ptable, person2)

        self.person2_id = person2_id
        self.pe2_id = s3db.pr_get_pe_id(ptable, person2_id)

    # -------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3db/pr.py/PersonDeduplicateTests.setUp/original