mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
add vmstat timestamp tests to utils
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user