From d6837d020b0997e8e175921c47e3ea89e54a846e Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Wed, 24 Jul 2024 18:25:48 -0400 Subject: [PATCH] Test no-op `add_transient_link_key` --- tests/test_ezsp_v4.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_ezsp_v4.py b/tests/test_ezsp_v4.py index 9ad438da..e7c7ef77 100644 --- a/tests/test_ezsp_v4.py +++ b/tests/test_ezsp_v4.py @@ -354,3 +354,12 @@ async def test_source_route(ezsp_f) -> None: assert ezsp_f.setSourceRoute.mock_calls == [ call(destination=0x1234, relayList=[0x5678, 0xABCD]) ] + + +async def test_add_transient_link_key(ezsp_f) -> None: + # It's a no-op + status = await ezsp_f.add_transient_link_key( + ieee=t.EUI64.convert("ff:ff:ff:ff:ff:ff:ff:ff"), + key=t.KeyData.convert("ZigBeeAlliance09"), + ) + assert status == t.sl_Status.OK