def test_toDate(self):
        """
        Test that L{DailyLogFile.toDate} converts its timestamp argument to a
        time tuple (year, month, day).
        """
        log = logfile.DailyLogFile(self.name, self.dir)
        self.addCleanup(log.close)

        timestamp = time.mktime((2000, 1, 1, 0, 0, 0, 0, 0, 0))
        self.assertEqual((2000, 1, 1), log.toDate(timestamp))

        Test that L{DailyLogFile.toDate} converts its timestamp argument to a
        time tuple (year, month, day).
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_logfile.py