def test_toDateUsesArgumentsToMakeADate(self):
        """
        Test that L{DailyLogFile.toDate} uses its arguments to create a new
        date.
        """
        log = logfile.DailyLogFile(self.name, self.dir)
        self.addCleanup(log.close)

        date = (2014, 10, 22)
        seconds = time.mktime(date + (0,)*6)

        logDate = log.toDate(seconds)
        self.assertEqual(date, logDate)

        Test that L{DailyLogFile.toDate} uses its arguments to create a new
        date.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_logfile.py