Skip to content

Commit

Permalink
Test creating magic packer from invalid mac address
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Feb 17, 2024
1 parent 55e95a3 commit 1accff7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test_wakeonlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ def test_dot(self) -> None:
b'\xff\xff\xff\xff\xff\xff',
)

def test_invalid(self) -> None:
"""
Test an invalid mac address.
"""
with self.assertRaises(ValueError):
create_magic_packet('invalid')


class TestSendMagicPacket(unittest.TestCase):
"""
Expand Down

0 comments on commit 1accff7

Please sign in to comment.