Strptime¶
- class badidatetime.tests.test_strptime.TestStrptime_DotDict(name)[source]¶
Bases:
TestCase- _classSetupFailed = False¶
- _class_cleanups = []¶
- class badidatetime.tests.test_strptime.TestStrptime_Functions(name)[source]¶
Bases:
TestCase- _classSetupFailed = False¶
- _class_cleanups = []¶
- test__calc_julian_from_U_or_W()[source]¶
Test that the _calc_julian_from_U_or_W function returns the day of the year. The week_of_year is from 0 to 50/51 The day_of_week is from 0 to 6. The 1st day is always week 0.
- class badidatetime.tests.test_strptime.TestStrptime_LocaleTime(name)[source]¶
Bases:
TestCaseThis test is a bit different than most test. Since all the methods in the class are called in the constructor we need to test the results of each of the methods.
- _classSetupFailed = False¶
- _class_cleanups = []¶
- class badidatetime.tests.test_strptime.TestStrptime_StrpTime(name)[source]¶
Bases:
TestCase- _classSetupFailed = False¶
- _class_cleanups = []¶
- test__check_iso_week()[source]¶
Test that the _check_iso_week method raises the appropreate exceptions.
- test__find_regex()[source]¶
Test that the _strptime function returns a complex tuple in the form of:
((year, month, day, None, None, hour, minute, second, weekday, julian, tz, tzname, gmroff), fraction, gmtoff_fraction)
- test__miscellaneous()[source]¶
Test that the _miscellaneous method updates a few values.
Both weekday and week_of_year start their count with 0 not 1.