summaryrefslogtreecommitdiffstats
path: root/netaddr/tests/test_netaddr.py
diff options
context:
space:
mode:
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')