How to use the wakeonlan.create_magic_packet 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_create_magic_packet(mac, packet):
    """
    Test whether a correct magic packet is created.

    """
    result = create_magic_packet(mac)
    assert result == packet

wakeonlan

A small python module for wake on lan.

MIT
Latest version published 1 year ago

Package Health Score

56 / 100
Full package analysis