diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2019-11-18 11:03:54 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-11-18 11:30:18 +0100 |
| commit | 18e10740a43d3d6f70a85af6fdf3bb90bdbd1183 (patch) | |
| tree | 5c915d0cfe741e59c46309f8c13745491a0a87b3 /tests/utils_tests/test_dateformat.py | |
| parent | 3ca77e2b843a264ad74fcd7b92141de1ddf5a4cb (diff) | |
Refs #30990 -- Added test for 'z' date format with a leap year.
Diffstat (limited to 'tests/utils_tests/test_dateformat.py')
| -rw-r--r-- | tests/utils_tests/test_dateformat.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/utils_tests/test_dateformat.py b/tests/utils_tests/test_dateformat.py index c11dd5591d..bffbcd3ba3 100644 --- a/tests/utils_tests/test_dateformat.py +++ b/tests/utils_tests/test_dateformat.py @@ -116,6 +116,9 @@ class DateFormatTests(SimpleTestCase): the_future = datetime(2100, 10, 25, 0, 00) self.assertEqual(dateformat.format(the_future, r'Y'), '2100') + def test_day_of_year_leap(self): + self.assertEqual(dateformat.format(datetime(2000, 12, 31), 'z'), '366') + def test_timezones(self): my_birthday = datetime(1979, 7, 8, 22, 00) summertime = datetime(2005, 10, 30, 1, 00) |
