Beispiel #1
0
 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'))
Beispiel #2
0
 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'))
Beispiel #3
0
 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"))