summaryrefslogtreecommitdiffstats
path: root/netaddr/tests/test_netaddr.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 17:45:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 17:45:09 +0000
commitda1a8f12d7a38f67f3f464aaaffa851f929ae4ea (patch)
tree677688f3aeab7f324f266d106770165708522c2c /netaddr/tests/test_netaddr.py
parentInitial commit. (diff)
downloadpython-netaddr-upstream/0.10.1.tar.xz
python-netaddr-upstream/0.10.1.zip
Adding upstream version 0.10.1.upstream/0.10.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'netaddr/tests/test_netaddr.py')
-rw-r--r--netaddr/tests/test_netaddr.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/netaddr/tests/test_netaddr.py b/netaddr/tests/test_netaddr.py
new file mode 100644
index 0000000..ee7ecd8
--- /dev/null
+++ b/netaddr/tests/test_netaddr.py
@@ -0,0 +1,11 @@
+from netaddr import valid_mac, valid_eui64
+
+
+def test_valid_mac():
+ assert valid_mac('00-B0-D0-86-BB-F7')
+ assert not valid_mac('00-1B-77-49-54-FD-12-34')
+
+
+def test_valid_eui64():
+ assert valid_eui64('00-1B-77-49-54-FD-12-34')
+ assert not valid_eui64('00-B0-D0-86-BB-F7')