From: 
Subject: Debian changes

The Debian packaging of python-aioswitcher is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/python-aioswitcher
    % cd python-aioswitcher
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone python-aioswitcher`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/src/aioswitcher/device/tools.py b/src/aioswitcher/device/tools.py
index f767a7c..c24aa6d 100644
--- a/src/aioswitcher/device/tools.py
+++ b/src/aioswitcher/device/tools.py
@@ -22,8 +22,8 @@
 from struct import pack
 
 import aiohttp
-from Crypto.Cipher import AES
-from Crypto.Util.Padding import unpad
+from Cryptodome.Cipher import AES
+from Cryptodome.Util.Padding import unpad
 
 from ..device import DeviceType
 
diff --git a/tests/test_api_packet_crc_signing.py b/tests/test_api_packet_crc_signing.py
index 22e667f..8441982 100644
--- a/tests/test_api_packet_crc_signing.py
+++ b/tests/test_api_packet_crc_signing.py
@@ -18,6 +18,7 @@
 from struct import pack
 
 from assertpy import assert_that
+from pytest import mark
 
 from aioswitcher.api import Command, packets
 from aioswitcher.device.tools import sign_packet_with_crc_key
@@ -28,11 +29,12 @@
 SUT_DEVICE_KEY = "18"
 
 
-def test_sign_packet_with_crc_key_for_a_random_string_throws_error():
-    """Test the sign_packet_with_crc_key tool with a random string unqualified as a packet."""
+@mark.parametrize("packet", ["just a regular string", "abc", "zz"])
+def test_sign_packet_with_crc_key_for_an_invalid_string_throws_error(packet: str) -> None:
+    """Test that odd-length or non-hexadecimal packets raise ValueError."""
     assert_that(sign_packet_with_crc_key).raises(
         ValueError
-    ).when_called_with("just a regular string").is_equal_to("Odd-length string")
+    ).when_called_with(packet)
 
 
 def test_sign_packet_with_crc_key_for_LOGIN_PACKET_TYPE1_returns_signed_packet():
