#NEWLINE# def test_submit_new_run_with_missing_status_field( self ) : #NEWLINE# #INDENT# '\n        Submit a new test run with bad results data.\n\n        No status in the runcaseversion.\n        ' #NEWLINE# envs = self . F . EnvironmentFactory . create_full_set ( { #NEWLINE# #INDENT# 'OS' : [ 'OS X' , 'Linux' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# pv = self . F . ProductVersionFactory . create ( environments = envs ) #NEWLINE# c_p = self . F . CaseVersionFactory . create ( case__product = pv . product , productversion = pv ) #NEWLINE# payload = { #NEWLINE# #INDENT# 'description' : 'a description' , #NEWLINE# 'environments' : [ self . get_detail_url ( 'environment' , envs [ 0 ] . id ) ] , #NEWLINE# 'name' : 'atari autorun.sys' , #NEWLINE# 'productversion' : self . get_detail_url ( 'productversion' , pv . id ) , #NEWLINE# 'runcaseversions' : [ { #NEWLINE# #INDENT# 'case' : unicode ( c_p . case . id ) , #NEWLINE# 'environment' : unicode ( envs [ 0 ] . id ) , #NEWLINE# #UNINDENT# } ] , #NEWLINE# 'status' : 'active' , #NEWLINE# #UNINDENT# } #NEWLINE# self . post ( self . get_list_url ( self . resource_name ) , payload = payload , params = payload . auth_params , status = 400 )