mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-02 05:43:02 +02:00
27 lines
659 B
Python
Executable File
27 lines
659 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import infamy
|
|
import lxml
|
|
|
|
with infamy.Test() as test:
|
|
with test.step("Initialize"):
|
|
env = infamy.Env(infamy.std_topology("1x1"))
|
|
target = env.attach("target", "mgmt")
|
|
|
|
with test.step("Set timezone UTC offset"):
|
|
target.put_config_dict("ietf-system", {
|
|
"system": {
|
|
"clock": {
|
|
"timezone-utc-offset": "12"
|
|
}
|
|
}
|
|
})
|
|
|
|
with test.step("Verify current time."):
|
|
current_datetime=target.get_current_time_with_offset()
|
|
offset=current_datetime[-6:]
|
|
|
|
assert(offset == "+12:00")
|
|
|
|
test.succeed()
|