Skip to content

Commit 1accff7

Browse files
committed
Test creating magic packer from invalid mac address
1 parent 55e95a3 commit 1accff7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test_wakeonlan.py

+8
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ def test_dot(self) -> None:
123123
b'\xff\xff\xff\xff\xff\xff',
124124
)
125125

126+
def test_invalid(self) -> None:
127+
"""
128+
Test an invalid mac address.
129+
130+
"""
131+
with self.assertRaises(ValueError):
132+
create_magic_packet('invalid')
133+
126134

127135
class TestSendMagicPacket(unittest.TestCase):
128136
"""

0 commit comments

Comments
 (0)