mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 00:15:17 -06:00
Add test for issue #13722
Range "568" is invalid when creating interface with names vlan [568,570]
This commit is contained in:
parent
a8a36c0a8f
commit
33d4a9ab71
@ -245,6 +245,15 @@ class ExpandAlphanumeric(TestCase):
|
||||
|
||||
self.assertEqual(sorted(expand_alphanumeric_pattern(input)), output)
|
||||
|
||||
def test_numeric_set(self):
|
||||
input = "vlan[123,456]"
|
||||
output = sorted([
|
||||
'vlan123',
|
||||
'vlan456'
|
||||
])
|
||||
|
||||
self.assertEqual(sorted(expand_alphanumeric_pattern(input)), output)
|
||||
|
||||
def test_invalid_non_pattern(self):
|
||||
with self.assertRaises(ValueError):
|
||||
sorted(expand_alphanumeric_pattern('r9a'))
|
||||
|
Loading…
Reference in New Issue
Block a user