From 4d447f3cbcb4968cbbbad7410df04c15e5be5896 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 27 Jun 2023 22:12:18 +0100 Subject: [PATCH] Date format test --- tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests.py b/tests.py index 45083d952..278f42738 100644 --- a/tests.py +++ b/tests.py @@ -4722,6 +4722,10 @@ def _test_parse_newswire_feed_date(): unique_string_identifier = 'some string abcd' + pub_date = "Fri, 16 Jun 2023 18:54:23 +0000" + published_date = parse_feed_date(pub_date, unique_string_identifier) + assert published_date == "2023-06-16 18:54:23+00:00" + pub_date = "2020-12-14T00:08:06+00:00" published_date = parse_feed_date(pub_date, unique_string_identifier) assert published_date == "2020-12-14 00:08:06+00:00"