@@ -25,9 +25,7 @@ def test_parse_table_with_vlan_expansion(self):
25
25
assert table_info ["type" ] == "L3"
26
26
assert table_info ["policy_desc" ] == "TEST"
27
27
assert table_info ["stage" ] == "egress"
28
-
29
- port_list = table_info ["ports@" ].split ("," )
30
- assert set (port_list ) == {"Ethernet4" , "Ethernet8" , "Ethernet12" , "Ethernet16" }
28
+ assert set (table_info ["ports" ]) == {"Ethernet4" , "Ethernet8" , "Ethernet12" , "Ethernet16" }
31
29
32
30
def test_parse_table_with_vlan_and_duplicates (self ):
33
31
table_info = parse_acl_table_info ("TEST" , "L3" , None , "Ethernet4,Vlan1000" , "egress" )
@@ -36,9 +34,9 @@ def test_parse_table_with_vlan_and_duplicates(self):
36
34
assert table_info ["stage" ] == "egress"
37
35
38
36
# Since Ethernet4 is a member of Vlan1000 we should not include it twice in the output
39
- port_list = table_info ["ports@" ]. split ( "," )
40
- assert len (port_list ) == 4
41
- assert set (port_list ) == {"Ethernet4" , "Ethernet8" , "Ethernet12" , "Ethernet16" }
37
+ port_set = set ( table_info ["ports" ] )
38
+ assert len (port_set ) == 4
39
+ assert set (port_set ) == {"Ethernet4" , "Ethernet8" , "Ethernet12" , "Ethernet16" }
42
40
43
41
def test_parse_table_with_empty_vlan (self ):
44
42
with pytest .raises (ValueError ):
0 commit comments