#NEWLINE# @ run_with_all_backends #NEWLINE# def test_case_close_format( self ) : #NEWLINE# #INDENT# self . post_xml ( self . xform_xml , self . domain_name ) #NEWLINE# payload = self . repeat_records ( self . domain_name ) . all ( ) [ 0 ] . get_payload ( ) #NEWLINE# self . assertXmlHasXpath ( payload , '//*[local-name()="case"]' ) #NEWLINE# self . assertXmlHasXpath ( payload , '//*[local-name()="create"]' ) #NEWLINE# CaseFactory ( ) . close_case ( CASE_ID ) #NEWLINE# close_payload = self . repeat_records ( self . domain_name ) . all ( ) [ 1 ] . get_payload ( ) #NEWLINE# self . assertXmlHasXpath ( close_payload , '//*[local-name()="case"]' ) #NEWLINE# self . assertXmlHasXpath ( self , '//*[local-name()="close"]' )