Esempio n. 1
0
 def test_second(self):
     print sql.duration(0) == ''
Esempio n. 2
0
 def test_hours(self):
     assert sql.duration(60 * 60 + 1) == '1 h 00 min 01 s'
Esempio n. 3
0
 def test_minutes(self):
     assert sql.duration(61) == '01 min 01 s'
Esempio n. 4
0
 def test_hour(self):
     assert sql.duration(60 * 60) == '1 h 00 min'
Esempio n. 5
0
 def test_minute(self):
     assert sql.duration(60) == '01 min'