def test_seconds2timeunit(self): self.assertEqual(recon.seconds2timeunit(10), (10, 'seconds')) self.assertEqual(recon.seconds2timeunit(600), (10, 'minutes')) self.assertEqual(recon.seconds2timeunit(36000), (10, 'hours')) self.assertEqual(recon.seconds2timeunit(60 * 60 * 24 * 10), (10, 'days'))
def test_seconds2timeunit(self): self.assertEqual(recon.seconds2timeunit(10), (10, "seconds")) self.assertEqual(recon.seconds2timeunit(600), (10, "minutes")) self.assertEqual(recon.seconds2timeunit(36000), (10, "hours")) self.assertEqual(recon.seconds2timeunit(60 * 60 * 24 * 10), (10, "days"))