forked from mirrors/thatmattlove-hyperglass
fix broken test from Device.platform refactor
This commit is contained in:
parent
ab097d4b06
commit
2474dc1761
1 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,8 @@ from ..util import check_legacy_fields
|
|||
|
||||
def test_check_legacy_fields():
|
||||
test1 = {"name": "Device A", "nos": "juniper"}
|
||||
test1_expected = {"name": "Device A", "type": "juniper"}
|
||||
test2 = {"name": "Device B", "type": "juniper"}
|
||||
test1_expected = {"name": "Device A", "platform": "juniper"}
|
||||
test2 = {"name": "Device B", "platform": "juniper"}
|
||||
test3 = {"name": "Device C"}
|
||||
assert set(check_legacy_fields("Device", **test1).keys()) == set(
|
||||
test1_expected.keys()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue