예제 #1
0
파일: test_time.py 프로젝트: seyfahni/desky
 def test_parse_milli_seconds_with_full_unit(self):
     parsed = time.parse_time_duration('23milliseconds')
     self.assertEqual(23, parsed)
예제 #2
0
파일: test_time.py 프로젝트: seyfahni/desky
 def test_parse_seconds_full_unit(self):
     parsed = time.parse_time_duration('23seconds')
     self.assertEqual(23000, parsed)
예제 #3
0
파일: test_time.py 프로젝트: seyfahni/desky
 def test_parse_milli_seconds_with_abbreviated_unit(self):
     parsed = time.parse_time_duration('23ms')
     self.assertEqual(23, parsed)
예제 #4
0
파일: test_time.py 프로젝트: seyfahni/desky
 def test_parse_seconds_with_short_unit(self):
     parsed = time.parse_time_duration('23s')
     self.assertEqual(23000, parsed)