From c4fdd45e6dd1ca5d0c8f68de40f158f349784d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Grossm=C3=BCller?= Date: Sat, 13 Jul 2024 15:51:43 +0200 Subject: [PATCH] test(misc): Add test for violating timezone --- tests/test_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index dcb9046a7..27e369cca 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -157,6 +157,9 @@ def test_http_date_to_dt(self): 'Sunday, 06-Nov-94 08:49:37 GMT', obs_date=True ) == datetime(1994, 11, 6, 8, 49, 37, tzinfo=timezone.utc) + with pytest.raises(ValueError): + falcon.http_date_to_dt('Thu, 04 Apr 2013 10:28:54 EST') + def test_pack_query_params_none(self): assert falcon.to_query_str({}) == ''