mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 05:28:16 -06:00
update test_ordering expected values
This commit is contained in:
parent
b62bc3a193
commit
255190f52c
@ -32,22 +32,22 @@ class NaturalizationTestCase(TestCase):
|
|||||||
data = (
|
data = (
|
||||||
|
|
||||||
# IOS/JunOS-style
|
# IOS/JunOS-style
|
||||||
('Gi', '0015................................................................................................'),
|
('Gi', '0010................................................................................................'),
|
||||||
('Gi1', '001500002...........................................................................................'),
|
('Gi1', '001000002...........................................................................................'),
|
||||||
('Gi1.0', '001500002000001.....................................................................................'),
|
('Gi1.0', '001000002000001.....................................................................................'),
|
||||||
('Gi1.1', '001500002000002.....................................................................................'),
|
('Gi1.1', '001000002000002.....................................................................................'),
|
||||||
('Gi1:0', '001600002900001.....................................................................................'),
|
('Gi1:0', '001100002900001.....................................................................................'),
|
||||||
('Gi1:0.0', '001600002900001000001...............................................................................'),
|
('Gi1:0.0', '001100002900001000001...............................................................................'),
|
||||||
('Gi1:0.1', '001600002900001000002...............................................................................'),
|
('Gi1:0.1', '001100002900001000002...............................................................................'),
|
||||||
('Gi1:1', '001600002900002.....................................................................................'),
|
('Gi1:1', '001100002900002.....................................................................................'),
|
||||||
('Gi1:1.0', '001600002900002000001...............................................................................'),
|
('Gi1:1.0', '001100002900002000001...............................................................................'),
|
||||||
('Gi1:1.1', '001600002900002000002...............................................................................'),
|
('Gi1:1.1', '001100002900002000002...............................................................................'),
|
||||||
('Gi1/2', '001600002900003.....................................................................................'),
|
('Gi1/2', '001100002900003.....................................................................................'),
|
||||||
('Gi1/2/3', '001700002900003900004...............................................................................'),
|
('Gi1/2/3', '001200002900003900004...............................................................................'),
|
||||||
('Gi1/2/3/4', '001800002900003900004900005.........................................................................'),
|
('Gi1/2/3/4', '001300002900003900004900005.........................................................................'),
|
||||||
('Gi1/2/3/4/5', '001900002900003900004900005900006...................................................................'),
|
('Gi1/2/3/4/5', '001400002900003900004900005900006...................................................................'),
|
||||||
('Gi1/2/3/4/5:6', '002000002900003900004900005900006900007.............................................................'),
|
('Gi1/2/3/4/5:6', '001500002900003900004900005900006900007.............................................................'),
|
||||||
('Gi1/2/3/4/5:6.7', '002000002900003900004900005900006900007000008.......................................................'),
|
('Gi1/2/3/4/5:6.7', '001500002900003900004900005900006900007000008.......................................................'),
|
||||||
|
|
||||||
# Generic
|
# Generic
|
||||||
('PCIe1-p1', '00300000200002......................................................................................'),
|
('PCIe1-p1', '00300000200002......................................................................................'),
|
||||||
@ -61,4 +61,4 @@ class NaturalizationTestCase(TestCase):
|
|||||||
self.assertEqual(naturalize_interface(origin, max_length=100), naturalized)
|
self.assertEqual(naturalize_interface(origin, max_length=100), naturalized)
|
||||||
|
|
||||||
def test_naturalize_interface_max_length(self):
|
def test_naturalize_interface_max_length(self):
|
||||||
self.assertEqual(naturalize_interface('Gi1/2/3', max_length=25), '150000002900003900004....')
|
self.assertEqual(naturalize_interface('Gi1/2/3', max_length=25), '001200002900003900004....')
|
||||||
|
Loading…
Reference in New Issue
Block a user