diff --git a/tests/test_systeminfo.py b/tests/test_systeminfo.py index e790e506..7eccce88 100644 --- a/tests/test_systeminfo.py +++ b/tests/test_systeminfo.py @@ -11,6 +11,7 @@ class MyTests(unittest.TestCase): "tests/fixtures/windows/windows-7/systeminfo", "tests/fixtures/windows/windows-10/systeminfo", "tests/fixtures/windows/windows-10/systeminfo-hyperv", + "tests/fixtures/windows/windows-10/systeminfo-hyperv-utc", "tests/fixtures/windows/windows-2012r2/systeminfo", ] diff --git a/tests/test_utils.py b/tests/test_utils.py index c94a7b3e..ecb1a6a2 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -14,6 +14,10 @@ class MyTests(unittest.TestCase): '2021-03-23 00:14': {'string': '2021-03-23 00:14', 'format': 1500, 'naive': 1616483640, 'utc': None}, # Windows english format (found in dir cli output) '12/07/2019 02:09 AM': {'string': '12/07/2019 02:09 AM', 'format': 1600, 'naive': 1575713340, 'utc': None}, + # Windows english format wint non-UTC tz (found in systeminfo cli output) + '3/22/2021, 1:15:51 PM (UTC-0600)': {'string': '3/22/2021, 1:15:51 PM (UTC-0600)', 'format': 1700, 'naive': 1616444151, 'utc': None}, + # Windows english format with UTC tz (found in systeminfo cli output) + '3/22/2021, 1:15:51 PM (UTC+0000)': {'string': '3/22/2021, 1:15:51 PM (UTC+0000)', 'format': 1710, 'naive': 1616444151, 'utc': 1616418951}, # en_US.UTF-8 local format (found in upower cli output) 'Tue 23 Mar 2021 04:12:11 PM UTC': {'string': 'Tue 23 Mar 2021 04:12:11 PM UTC', 'format': 2000, 'naive': 1616541131, 'utc': 1616515931}, # en_US.UTF-8 local format with non-UTC tz (found in upower cli output)