From ba0dd3b9ca98a042c772898302fcfe5fdc84f79a Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Mon, 29 Mar 2021 21:25:19 -0700 Subject: [PATCH] add parse_timedate_to_timestamp test for format 7300 --- tests/test_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index 30de7c6e..342e7da8 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -27,7 +27,9 @@ class MyTests(unittest.TestCase): # C local format (found in stat cli output - linux) non-UTC tz '2019-08-13 18:13:43.555604315 -0400': {'format': 7200, 'timestamp_naive': 1565745223, 'timestamp_utc': None}, # C local format (found in stat cli output - linux) UTC - '2019-08-13 18:13:43.555604315 -0000': {'format': 7200, 'timestamp_naive': 1565745223, 'timestamp_utc': 1565720023} + '2019-08-13 18:13:43.555604315 -0000': {'format': 7200, 'timestamp_naive': 1565745223, 'timestamp_utc': 1565720023}, + # C locale format (found in timedatectl cli output) + 'Wed 2020-03-11 00:53:21 UTC': {'format': 7300, 'timestamp_naive': 1583913201, 'timestamp_utc': 1583888001} } for input_string, expected_output in datetime_map.items():