2022-03-26 17:03:06 +08:00
|
|
|
From 76fe3af427a1316a91c96e01de1f0407893121a9 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: hanhui <hanhui15@h-partners.com>
|
|
|
|
|
Date: Sat, 26 Mar 2022 16:23:45 +0800
|
|
|
|
|
Subject: [PATCH] disable-test-oui-information
|
|
|
|
|
|
|
|
|
|
reason:elimate-ROC-in-python-netaddr.patch lead to
|
|
|
|
|
oui.registration.org and oui.registration.address
|
|
|
|
|
changed,cause the failure of test cases.
|
|
|
|
|
Therefore, disable the test code
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
netaddr/tests/eui/test_eui.py | 27 ---------------------------
|
|
|
|
|
1 file changed, 27 deletions(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/netaddr/tests/eui/test_eui.py b/netaddr/tests/eui/test_eui.py
|
|
|
|
|
index 645a518..b8dcedd 100644
|
|
|
|
|
--- a/netaddr/tests/eui/test_eui.py
|
|
|
|
|
+++ b/netaddr/tests/eui/test_eui.py
|
2024-02-02 16:47:12 +08:00
|
|
|
@@ -146,42 +146,14 @@ def test_eui_oui_information():
|
2022-03-26 17:03:06 +08:00
|
|
|
oui = mac.oui
|
|
|
|
|
assert str(oui) == '00-1B-77'
|
|
|
|
|
|
|
|
|
|
- assert oui.registration().address == [
|
|
|
|
|
- 'Lot 8, Jalan Hi-Tech 2/3',
|
|
|
|
|
- 'Kulim Kedah 09000',
|
|
|
|
|
- 'MY'
|
|
|
|
|
- ]
|
|
|
|
|
-
|
|
|
|
|
- assert oui.registration().org == 'Intel Corporate'
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
def test_oui_constructor():
|
|
|
|
|
oui = OUI(524336)
|
|
|
|
|
assert str(oui) == '08-00-30'
|
|
|
|
|
assert oui == OUI('08-00-30')
|
|
|
|
|
|
|
|
|
|
- assert oui.registration(0).address == [
|
|
|
|
|
- '2380 N. ROSE AVENUE',
|
|
|
|
|
- 'OXNARD CA 93010',
|
|
|
|
|
- 'US'
|
|
|
|
|
- ]
|
|
|
|
|
- assert oui.registration(0).org == 'NETWORK RESEARCH CORPORATION'
|
|
|
|
|
assert oui.registration(0).oui == '08-00-30'
|
|
|
|
|
|
|
|
|
|
- assert oui.registration(1).address == [
|
|
|
|
|
- 'GPO BOX 2476V',
|
|
|
|
|
- 'MELBOURNE VIC 3001',
|
|
|
|
|
- 'AU',
|
|
|
|
|
- ]
|
|
|
|
|
- assert oui.registration(1).org == 'ROYAL MELBOURNE INST OF TECH'
|
2024-02-02 16:47:12 +08:00
|
|
|
- assert oui.registration(1).oui == '08-00-30'
|
2022-03-26 17:03:06 +08:00
|
|
|
|
|
|
|
|
- assert oui.registration(2).address == [
|
|
|
|
|
- 'CH-1211',
|
|
|
|
|
- 'GENEVE SUISSE/SWITZ 023',
|
|
|
|
|
- 'CH'
|
|
|
|
|
- ]
|
|
|
|
|
- assert oui.registration(2).org == 'CERN'
|
|
|
|
|
assert oui.registration(2).oui == '08-00-30'
|
|
|
|
|
assert oui.reg_count == 3
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
2.33.0
|
|
|
|
|
|