Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def test_timestamp_to_secs_with_default(self):
     assert_equal(timestamp_to_secs('20070920 16:15:14.123'), EXAMPLE_TIME+0.123)
Ejemplo n.º 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)
Ejemplo n.º 5
0
 def test_timestamp_to_secs_with_default(self):
     assert_equal(timestamp_to_secs('20070920 16:15:14.123'),
                  EXAMPLE_TIME + 0.123)
Ejemplo n.º 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)