How to use the wakeonlan.main function in wakeonlan

To help you get started, we’ve selected a few wakeonlan examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github remcohaszing / pywakeonlan / test_wakeonlan.py View on Github external
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,)
    ]

wakeonlan

A small python module for wake on lan.

MIT
Latest version published 12 months ago

Package Health Score

65 / 100
Full package analysis