diff --git a/tests/controller_test.py b/tests/controller_test.py index 1918333b5..4b6dbc43d 100644 --- a/tests/controller_test.py +++ b/tests/controller_test.py @@ -182,3 +182,8 @@ def test_start_end_empty_default(self): default_timedelta_datetime=dt.timedelta(hours=1), ) + def test_start_end_berlin(self): + with freeze_time('2016-04-10 23:30'): + start = dt.datetime(2016, 4, 10, 0, 0) + end = dt.datetime(2016, 4, 11, 0, 0) + assert (start, end) == start_end_from_daterange(('today',), locale=utils.LOCALE_BERLIN)