def test_timestamp_to_secs_with_millis(self):
     result = timestamp_to_secs('20070920 16:15:14.123')
     assert_equal(result, EXAMPLE_TIME+0.123)
 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)
 def test_timestamp_to_secs_with_default(self):
     assert_equal(timestamp_to_secs('20070920 16:15:14.123'), EXAMPLE_TIME+0.123)
 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)
 def test_timestamp_to_secs_with_default(self):
     assert_equal(timestamp_to_secs('20070920 16:15:14.123'),
                  EXAMPLE_TIME + 0.123)
Exemple #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)