#NEWLINE# def test_testplan_submit_valid_fields( self ) : #NEWLINE# #INDENT# form_data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# form_data [ 'name' ] = ( 'Test Plan %s' % ( uuid . uuid4 ( ) . hex , ) ) #NEWLINE# form_data [ 'description' ] = 'Description...' #NEWLINE# form_data [ 'latencyEnabled' ] = True #NEWLINE# form_data [ 'clientLatency' ] = 0 #NEWLINE# form_data [ 'serverLatency' ] = 100 #NEWLINE# response = self . client . post ( '/webui/testplans/new/' , form_data ) #NEWLINE# location = response . url #NEWLINE# pattern = '.+testplans\\/(?P<id>\\w+)' #NEWLINE# p = re . compile ( pattern ) #NEWLINE# m = p . match ( location ) #NEWLINE# testplan_id = m . group ( 'id' ) #NEWLINE# self . assertRedirects ( response , ( '/webui/testplans/%s' % ( testplan_id , ) ) )