Skip to content

Commit

Permalink
Fixed INFORM test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Feb 4, 2024
1 parent df43b94 commit bd4070c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/hlapi/asyncio/agent/ntforg/test_v3-inform.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,14 @@ async def test_send_v3_inform_notification():
)
)

assert isinstance(errorIndication, RequestTimedOut)
assert errorIndication is None
assert errorStatus == 0
assert errorIndex == 0
assert varBinds == []
assert len(varBinds) == 3
assert varBinds[0][0].prettyPrint() == "SNMPv2-MIB::sysUpTime.0"
assert varBinds[1][0].prettyPrint() == "SNMPv2-MIB::snmpTrapOID.0"
assert varBinds[2][0].prettyPrint() == "SNMPv2-MIB::sysDescr.0"
isinstance(varBinds[0][1], TimeTicks)
isinstance(varBinds[1][1], ObjectIdentifier)
isinstance(varBinds[2][1], OctetString)
snmpEngine.transportDispatcher.closeDispatcher()

0 comments on commit bd4070c

Please sign in to comment.