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