mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 00:15:17 -06:00
Fix tests for test_invalid_range_alphanumeric
For some reason, the current test suite expects expand_alphanumeric_pattern('r[9-a]a') to return an empty list and not thow an exception like it does in all other error cases? That makes no sense.
This commit is contained in:
parent
33d4a9ab71
commit
de8541cccd
@ -269,8 +269,11 @@ class ExpandAlphanumeric(TestCase):
|
|||||||
sorted(expand_alphanumeric_pattern('r[8--9]a'))
|
sorted(expand_alphanumeric_pattern('r[8--9]a'))
|
||||||
|
|
||||||
def test_invalid_range_alphanumeric(self):
|
def test_invalid_range_alphanumeric(self):
|
||||||
self.assertEqual(sorted(expand_alphanumeric_pattern('r[9-a]a')), [])
|
with self.assertRaises(forms.ValidationError):
|
||||||
self.assertEqual(sorted(expand_alphanumeric_pattern('r[a-9]a')), [])
|
sorted(expand_alphanumeric_pattern('r[9-a]a'))
|
||||||
|
|
||||||
|
with self.assertRaises(forms.ValidationError):
|
||||||
|
sorted(expand_alphanumeric_pattern('r[a-9]a'))
|
||||||
|
|
||||||
def test_invalid_range_bounds(self):
|
def test_invalid_range_bounds(self):
|
||||||
with self.assertRaises(forms.ValidationError):
|
with self.assertRaises(forms.ValidationError):
|
||||||
|
Loading…
Reference in New Issue
Block a user