예제 #1
0
 def test_timestamp_to_secs_with_millis(self):
     result = timestamp_to_secs('20070920 16:15:14.123')
     assert_equal(result, EXAMPLE_TIME+0.123)
예제 #2
0
 def test_timestamp_to_secs_with_seps(self):
     result = timestamp_to_secs('2007-09-20#16x15x14M123', ('-','#','x','M'))
     assert_equal(result, EXAMPLE_TIME+0.123)
예제 #3
0
 def test_timestamp_to_secs_with_default(self):
     assert_equal(timestamp_to_secs('20070920 16:15:14.123'), EXAMPLE_TIME+0.123)
예제 #4
0
 def test_timestamp_to_secs_with_seps(self):
     result = timestamp_to_secs('2007-09-20#16x15x14M123',
                                ('-', '#', 'x', 'M'))
     assert_equal(result, EXAMPLE_TIME + 0.123)
예제 #5
0
 def test_timestamp_to_secs_with_default(self):
     assert_equal(timestamp_to_secs('20070920 16:15:14.123'),
                  EXAMPLE_TIME + 0.123)
예제 #6
0
 def test_timestamp_to_secs_with_millis(self):
     result = timestamp_to_secs('20070920 16:15:14.123')
     assert_equal(result, EXAMPLE_TIME + 0.123)