summaryrefslogtreecommitdiffstats
path: root/test/t/test_ether_wake.py
blob: 7afe28621254cb3ca67220160f0695a1557dae3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os

import pytest


@pytest.mark.bashcomp(cmd="ether-wake")
class TestEtherWake:
    @pytest.mark.xfail(
        os.environ.get("NETWORK") == "none",
        reason="MAC addresses may be N/A with no networking configured",
    )
    @pytest.mark.complete("ether-wake ")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete("ether-wake -", require_cmd=True)
    def test_2(self, completion):
        assert completion