tests.timestamp_tests module#
Tests for the Timestamp class.
- class tests.time_tests.TestTimeFunctions(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,TestCase
Test functions in time module.
- abstract_class = False#
- class tests.time_tests.TestTimestamp(*args, **kwargs)[source]#
Bases:
DisableSiteMixin
,TestCase
Test Timestamp class comparisons.
- abstract_class = False#
- test_results = {'INVALID': [['200902132331309999', None], ['2009-99-99 22:31:30.123456-01', None], ['1234567890.1234569999', None]], 'ISO8601': [['2009-02-13T23:31:30Z', '1234567890.000000'], ['2009-02-13T23:31:30', '1234567890.000000'], ['2009-02-13T23:31:30.123Z', '1234567890.123000'], ['2009-02-13T23:31:30.123', '1234567890.123000'], ['2009-02-13T23:31:30.123456Z', '1234567890.123456'], ['2009-02-13T23:31:30.123456', '1234567890.123456'], ['2009-02-13T23:31:30,123456Z', '1234567890.123456'], ['2009-02-13T23:31:30,123456', '1234567890.123456'], ['2009-02-14T00:31:30+0100', '1234567890.000000'], ['2009-02-13T22:31:30-0100', '1234567890.000000'], ['2009-02-14T00:31:30+01:00', '1234567890.000000'], ['2009-02-13T22:31:30-01:00', '1234567890.000000'], ['2009-02-13T23:41:30+00:10', '1234567890.000000'], ['2009-02-13T23:21:30-00:10', '1234567890.000000'], ['2009-02-14T00:31:30.123456+01', '1234567890.123456'], ['2009-02-13T22:31:30.123456-01', '1234567890.123456'], ['2009-02-14 00:31:30.123456+01', '1234567890.123456'], ['2009-02-13 22:31:30.123456-01', '1234567890.123456']], 'MW': [['20090213233130', '1234567890.000000']], 'POSIX': [['1234567890', '1234567890.000000'], ['-1234567890', '-1234567890.000000'], ['1234567890.123', '1234567890.123000'], ['-1234567890.123', '-1234567890.123000'], ['1234567890.123456', '1234567890.123456'], ['-1234567890.123456', '-1234567890.123456'], ['1234567890.000001', '1234567890.000001'], ['-1234567890.000001', '-1234567890.000001']]}#