#NEWLINE# def test_add_flow( self ) : #NEWLINE# #INDENT# match = hpsdnclient . datatypes . Match ( eth_type = 'ipv4' , ipv4_src = '10.0.0.1' , ipv4_dst = '10.0.0.22' , ip_proto = 'tcp' , tcp_dst = 80 ) #NEWLINE# output6 = hpsdnclient . datatypes . Action ( output = 6 ) #NEWLINE# flow = hpsdnclient . datatypes . Flow ( priority = 12345 , idle_timeout = 30 , match = match , actions = output6 ) #NEWLINE# self . api . add_flows ( OF10_DPID , flow ) #NEWLINE# self . assertTrue ( self . _flow_exists ( flow ) )