def test_gen_datetime_5(self):

        # min_date for the platform
        min_date = (datetime.datetime.now() -
                    datetime.timedelta(365 * MIN_YEARS))
        # max_date = min_date + 1 year
        max_date = min_date + datetime.timedelta(365 * 1)

        for turn in range(20):
            result = gen_datetime(
                min_date=None,
                max_date=max_date
            )
            self.assertTrue(result.year <= max_date.year)
            self.assertTrue(result.year >= min_date.year)
Turns path as used by Trie class being tested into a key.
dataset/ETHPy150Open omaciel/fauxfactory/tests/test_datetime.py/TestDates.test_gen_datetime_5--crossover with--dataset/ETHPy150Open google/pygtrie/test.py/TrieTestCase.KeyFromPath