コード例 #1
0
ファイル: test_util.py プロジェクト: fredrikaubert/airpnp
 def test_with_minus_sign(self):
     sec = hms_to_sec('-1:01:01')
     self.assertEqual(sec, -3661.0)
コード例 #2
0
ファイル: test_util.py プロジェクト: fredrikaubert/airpnp
 def test_with_plus_sign(self):
     sec = hms_to_sec('+1:01:01')
     self.assertEqual(sec, 3661.0)
コード例 #3
0
ファイル: test_util.py プロジェクト: fredrikaubert/airpnp
 def test_with_div_fraction(self):
     sec = hms_to_sec('0:00:05.1/2')
     self.assertEqual(sec, 5.5)
コード例 #4
0
ファイル: test_util.py プロジェクト: fredrikaubert/airpnp
 def test_second_conversion(self):
     sec = hms_to_sec('0:00:05')
     self.assertEqual(sec, 5.0)
コード例 #5
0
ファイル: test_util.py プロジェクト: fredrikaubert/airpnp
 def test_minute_conversion(self):
     sec = hms_to_sec('0:10:00')
     self.assertEqual(sec, 600.0)
コード例 #6
0
ファイル: test_util.py プロジェクト: fredrikaubert/airpnp
 def test_hour_conversion(self):
     sec = hms_to_sec('1:00:00')
     self.assertEqual(sec, 3600.0)