test(system-identity): compare the identity's keys only #68
@@ -25,7 +25,8 @@ def test_it_runs_the_shared_command(driver):
|
||||
identity = driver.get_system_identity()
|
||||
|
||||
exec_.assert_called_once_with(SYSTEM_IDENTITY_COMMAND)
|
||||
assert identity == {
|
||||
# The identity's keys only: napalm-device-types reads more in the same round trip.
|
||||
assert {k: identity[k] for k in ("system_uuid", "product_serial", "board_serial")} == {
|
||||
"system_uuid": "31303043-534d-c40c-7a72-6f1300000000",
|
||||
"product_serial": "",
|
||||
"board_serial": "ZM155S026022",
|
||||
|
||||
Reference in new issue
Block a user