#NEWLINE# def test_build_svlan( self ) : #NEWLINE# #INDENT# p = self . _build_svlan ( ) #NEWLINE# e = self . find_protocol ( p , 'ethernet' ) #NEWLINE# ok_ ( e ) #NEWLINE# eq_ ( e . ethertype , ether . ETH_TYPE_8021AD ) #NEWLINE# sv = self . find_protocol ( p , 'svlan' ) #NEWLINE# ok_ ( sv ) #NEWLINE# eq_ ( sv . ethertype , ether . ETH_TYPE_8021Q ) #NEWLINE# v = self . find_protocol ( p , 'vlan' ) #NEWLINE# ok_ ( v ) #NEWLINE# eq_ ( v . ethertype , ether . ETH_TYPE_IP ) #NEWLINE# ip = self . find_protocol ( p , 'ipv4' ) #NEWLINE# ok_ ( ip ) #NEWLINE# eq_ ( sv . pcp , self . pcp ) #NEWLINE# eq_ ( sv . cfi , self . cfi ) #NEWLINE# eq_ ( sv . vid , self . vid ) #NEWLINE# eq_ ( sv . ethertype , v . ethertype )