mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 00:15:17 -06:00
Add test for #13722
This commit is contained in:
parent
834d34a01c
commit
a8c6f10b06
@ -245,6 +245,17 @@ class ExpandAlphanumeric(TestCase):
|
||||
|
||||
self.assertEqual(sorted(expand_alphanumeric_pattern(input)), output)
|
||||
|
||||
# Checks for any regressions of https://github.com/netbox-community/netbox/issues/13722
|
||||
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):
|
||||
input = 'r9a'
|
||||
output = sorted([input])
|
||||
|
Loading…
Reference in New Issue
Block a user