def test_gen_datetime_4(self):

        # Today is...
        today = datetime.datetime.now()
        # Five minutes ago
        min_date = today - datetime.timedelta(seconds=5*60)
        # Five minutes into the future
        max_date = today + datetime.timedelta(seconds=5*60)

        for turn in range(10):
            result = gen_datetime(
                min_date=min_date,
                max_date=max_date
            )
            self.assertTrue(result >= min_date)
            self.assertTrue(result <= max_date)
@Test: Create a datetime with a 5-days datetime range
dataset/ETHPy150Open omaciel/fauxfactory/tests/test_datetime.py/TestDates.test_gen_datetime_4