#NEWLINE# def testOutOfOrderSubmissions( self ) : #NEWLINE# #INDENT# dir = os . path . join ( os . path . dirname ( __file__ ) , 'data' , 'ordering' ) #NEWLINE# for fname in ( 'update_oo.xml' , 'create_oo.xml' ) : #NEWLINE# #INDENT# with open ( os . path . join ( dir , fname ) , 'rb' ) as f : #NEWLINE# #INDENT# xml_data = f . read ( ) #NEWLINE# #UNINDENT# submit_form_locally ( xml_data , 'test-domain' ) #NEWLINE# #UNINDENT# case = CaseAccessors ( ) . get_case ( '30bc51f6-3247-4966-b4ae-994f572e85fe' ) #NEWLINE# self . assertEqual ( 'from the update form' , case . pupdate ) #NEWLINE# self . assertEqual ( 'from the create form' , case . pcreate ) #NEWLINE# self . assertEqual ( 'overridden by the update form' , f . pboth )