From ef6de75dda90c7221d53e0e0a942f0cac2247354 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sat, 23 Oct 2021 13:11:22 -0700 Subject: [PATCH] add vmstat timestamp tests to utils --- tests/test_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index 883d0361..475c5ebd 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -48,6 +48,10 @@ class MyTests(unittest.TestCase): '2019-08-13 18:13:43.555604315 -0400': {'string': '2019-08-13 18:13:43.555604315 -0400', 'format': 7200, 'naive': 1565745223, 'utc': None}, # C local format (found in stat cli output - linux) UTC '2019-08-13 18:13:43.555604315 -0000': {'string': '2019-08-13 18:13:43.555604315 -0000', 'format': 7200, 'naive': 1565745223, 'utc': 1565720023}, + # C locale format with non-UTC tz (found in modified vmstat cli output) + '2021-09-16 20:32:28 PDT': {'string': '2021-09-16 20:32:28 PDT', 'format': 7250, 'naive': 1631849548, 'utc': None}, + # C locale format (found in modified vmstat cli output) + '2021-09-16 20:32:28 UTC': {'string': '2021-09-16 20:32:28 UTC', 'format': 7255, 'naive': 1631849548, 'utc': 1631824348}, # C locale format (found in timedatectl cli output) 'Wed 2020-03-11 00:53:21 UTC': {'string': 'Wed 2020-03-11 00:53:21 UTC', 'format': 7300, 'naive': 1583913201, 'utc': 1583888001}, # test with None input