#NEWLINE# def test_create_flow_multiple_actions( 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# output1to6 = hpsdnclient . datatypes . Action ( output = [ 1 , 2 , 3 , 4 , 5 , 6 ] ) #NEWLINE# flow = hpsdnclient . datatypes . Flow ( priority = 12345 , idle_timeout = 30 , match = match , actions = output1to6 ) #NEWLINE# data = flow . to_json_string ( ) #NEWLINE# for i in range ( 1 , 6 ) : #NEWLINE# #INDENT# self . assertIn ( '"output": {}' . format ( output1to6 ) , data )