def setUp(self):
        midnight = time(0, 0, 0)
        yesterday = datetime.combine(date.today() - timedelta(days=1), midnight)
        day_before = datetime.combine(yesterday - timedelta(days=1), midnight)
        self.user1 = User.objects.create_user('user1', 'user1@example.com',
                                              'user1')
        self.user1.date_joined = day_before
        self.user1.save()
        self.user2 = User.objects.create_user('user2', 'user2@example.com',
                                              'user2')
        self.user2.date_joined = yesterday
        self.user2.save()
dataset/ETHPy150Open e-loue/django-lean/django_lean/lean_retention/tests/test_reports.py/TestCohort.setUp/original