#NEWLINE# def test_filter_ipv6_ingress_prefix( self ) : #NEWLINE# #INDENT# prefix = FAKE_PREFIX [ constants . IPv6 ] #NEWLINE# rule = { #NEWLINE# #INDENT# 'ethertype' : constants . IPv6 , #NEWLINE# 'direction' : 'ingress' , #NEWLINE# 'source_ip_prefix' : prefix , #NEWLINE# #UNINDENT# } #NEWLINE# flow_call_list = [ ] #NEWLINE# for proto in [ 'tcp' , 'udp' , 'ipv6' ] : #NEWLINE# #INDENT# priority = PROTOCOLS_DEFAULT_PRIO [ proto ] #NEWLINE# flow_call_list . append ( mock . call ( actions = self . _learn_ingress_actions ( proto , rule [ 'ethertype' ] , priority , ofport = self . fake_port_1 [ 'ofport' ] ) , dl_dst = self . fake_port_1 [ 'mac_address' ] , ipv6_dst = FAKE_IP [ constants . IPv6 ] , ipv6_src = prefix , priority = 30 , proto = PROTOCOLS_STR [ constants . IPv6 ] [ proto ] , table = OF_INGRESS_TABLE ) ) #NEWLINE# #UNINDENT# self . _test_rules ( [ self ] , FAKE_SGID , flow_call_list )