aboutsummaryrefslogtreecommitdiff
path: root/tests/test_mac.py
blob: 2f24b440fadf418598a9e6fe5d2e192a65ac946c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from edify.library import mac


def test_mac():
    macs = {
        "00:00:5e:00:53:af": True,
        "00:00:5e:00:53:af:": False,
        123: False,
    }

    for m_a_c, expected in macs.items():
        assert mac(m_a_c) == expected