

def test_asctime(self):
    time.asctime(time.gmtime(self.t))
    for bigyear in (TIME_MAXYEAR, TIME_MINYEAR):
        asc = time.asctime(((bigyear, 6, 1) + ((0,) * 6)))
        self.assertEqual(asc[(- len(str(bigyear))):], str(bigyear))
    self.assertRaises(OverflowError, time.asctime, (((TIME_MAXYEAR + 1),) + ((0,) * 8)))
    self.assertRaises(OverflowError, time.asctime, (((TIME_MINYEAR - 1),) + ((0,) * 8)))
    self.assertRaises(TypeError, time.asctime, 0)
    self.assertRaises(TypeError, time.asctime, ())
    self.assertRaises(TypeError, time.asctime, ((0,) * 10))

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_time.py TimeTestCase.test_asctime/original