1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add tests for naturalization functions

This commit is contained in:
Jeremy Stretch
2020-02-13 15:13:43 -05:00
parent 35498c17d7
commit 92fab048d1
2 changed files with 44 additions and 1 deletions

View File

@ -68,7 +68,7 @@ def naturalize_interface(value, max_length=None):
if match.group('type') is not None:
output.append(match.group('type'))
# Finally, append any remaining fields, left-padding to eight digits each.
# Finally, append any remaining fields, left-padding to six digits each.
for part_name in ('id', 'channel', 'vc'):
part = match.group(part_name)
if part is not None: