'Test that L{DailyLogFile.toDate} uses its arguments to create a new
date.'

def test_toDateUsesArgumentsToMakeADate(self):

    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)
