summaryrefslogtreecommitdiff
path: root/test/units/module_utils/facts/hardware/test_sunos_get_uptime_facts.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/units/module_utils/facts/hardware/test_sunos_get_uptime_facts.py')
-rw-r--r--test/units/module_utils/facts/hardware/test_sunos_get_uptime_facts.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/units/module_utils/facts/hardware/test_sunos_get_uptime_facts.py b/test/units/module_utils/facts/hardware/test_sunos_get_uptime_facts.py
index 1c852babaa..43ae726761 100644
--- a/test/units/module_utils/facts/hardware/test_sunos_get_uptime_facts.py
+++ b/test/units/module_utils/facts/hardware/test_sunos_get_uptime_facts.py
@@ -11,7 +11,7 @@ def test_sunos_get_uptime_facts(mocker):
inst = sunos.SunOSHardware(module)
- with mocker.patch('time.time', return_value=1567052602.5089788):
- expected = int(time.time()) - 1548249689
- result = inst.get_uptime_facts()
- assert expected == result['uptime_seconds']
+ mocker.patch('time.time', return_value=1567052602.5089788)
+ expected = int(time.time()) - 1548249689
+ result = inst.get_uptime_facts()
+ assert expected == result['uptime_seconds']