'Test that L{DailyLogFile.toDate} converts its timestamp argument to a
time tuple (year, month, day).'

def test_toDate(self):

    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))
