Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_create_magic_packet(mac, packet):
"""
Test whether a correct magic packet is created.
"""
result = create_magic_packet(mac)
assert result == packet