Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit 0a521e0

Browse files
committed
Adapt tests to new VLAN behavior
1 parent 623310f commit 0a521e0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_foundation/test_network_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_Ethernet_unpack(self):
8383
def test_Tagged_Ethernet_pack(self):
8484
"""Test pack method of Ethernet class including VLAN tag."""
8585
ethernet = Ethernet(destination='00:1f:3a:3e:9a:cf',
86-
source='00:15:af:d5:38:98', vlan=VLAN(vid=200),
86+
source='00:15:af:d5:38:98', vlans=[VLAN(vid=200)],
8787
ether_type=0x800, data=b'testdata')
8888
packed = ethernet.pack()
8989
expected = b'\x00\x1f:>\x9a\xcf\x00\x15\xaf\xd58'
@@ -95,8 +95,8 @@ def test_Tagged_Ethernet_unpack(self):
9595
raw = b'\x00\x15\xaf\xd58\x98\x00\x1f:>'
9696
raw += b'\x9a\xcf\x81\x00!^\x08\x00testdata'
9797
expected = Ethernet(destination='00:15:af:d5:38:98',
98-
source='00:1f:3a:3e:9a:cf', vlan=VLAN(pcp=1,
99-
vid=350),
98+
source='00:1f:3a:3e:9a:cf', vlans=[VLAN(pcp=1,
99+
vid=350)],
100100
ether_type=0x800, data=b'testdata')
101101
expected.pack()
102102
unpacked = Ethernet()

0 commit comments

Comments
 (0)