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_main(send_magic_packet):
"""
Test if processed arguments are passed to send_magic_packet.
"""
main(["00:11:22:33:44:55", "-i", "host.example", "-p", "1337"])
assert send_magic_packet.mock_calls == [
call("00:11:22:33:44:55", ip_address="host.example", port=1337,)
]