Skip to content

Commit e2bfdeb

Browse files
committed
feat(tests): add case for max valid length network interface name
1 parent c5b5daa commit e2bfdeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_iptc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,9 @@ def test_rule_address(self):
423423
def test_rule_interface(self):
424424
# valid interfaces
425425
rule = iptc.Rule6()
426-
for intf in ["eth0", "eth+", "ip6tnl1", "ip6tnl+", "!ppp0", "!ppp+"]:
426+
427+
max_length_valid_interface_name = "0123456789abcde"
428+
for intf in ["eth0", "eth+", "ip6tnl1", "ip6tnl+", "!ppp0", "!ppp+", max_length_valid_interface_name]:
427429
rule.in_interface = intf
428430
self.assertEquals(intf, rule.in_interface)
429431
rule.out_interface = intf

0 commit comments

Comments
 (0)