#NEWLINE# def test_mixed_form_and_case_indicators_process_form_then_case( self ) : #NEWLINE# #INDENT# def _test( ) : #NEWLINE# #INDENT# ( form , case ) = _save_form_and_case ( ) #NEWLINE# MVPFormIndicatorPillow ( ) . change_transform ( form . to_json ( ) ) #NEWLINE# updated_form = IndicatorXForm . get ( form . _id ) #NEWLINE# computed = updated_form . computed_ [ 'mvp_indicators' ] #NEWLINE# self . assertEqual ( 29 , len ( computed ) ) #NEWLINE# self . assertEqual ( 'child_visit_form' , computed [ 'child_visit_form' ] [ 'value' ] ) #NEWLINE# case_json = _get_doc_data ( 'bug_case.json' ) #NEWLINE# MVPCaseIndicatorPillow ( ) . change_transform ( case_json ) #NEWLINE# updated_form = IndicatorXForm . get ( form . _id ) #NEWLINE# updated_computed = updated_form . computed_ [ 'mvp_indicators' ] #NEWLINE# self . assertEqual ( 29 , len ( updated_computed ) ) #NEWLINE# self . assertEqual ( 'child_visit_form' , updated_computed [ 'child_visit_form' ] [ 'value' ] ) #NEWLINE# updated_form . delete ( ) #NEWLINE# form . delete ( ) #NEWLINE# case . delete ( ) #NEWLINE# #UNINDENT# self . _call_with_patches ( self )