#NEWLINE# @ run_with_all_backends #NEWLINE# def test_update_deactivated_user( self ) : #NEWLINE# #INDENT# '\n        Confirm that updating a deactivated user also updates the user case.\n        ' #NEWLINE# self . user . save ( ) #NEWLINE# user_case = CaseAccessors ( TEST_DOMAIN ) . get_case_by_domain_hq_user_id ( self . user . _id , USERCASE_TYPE ) #NEWLINE# self . assertIsNotNone ( user_case ) #NEWLINE# self . user . is_active = False #NEWLINE# self . user . save ( ) #NEWLINE# user_case = CaseAccessors ( TEST_DOMAIN ) . get_case_by_domain_hq_user_id ( user_case . user . _id , USERCASE_TYPE ) #NEWLINE# self . assertTrue ( user_case . closed ) #NEWLINE# self . user . user_data = { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } #NEWLINE# self . user . save ( ) #NEWLINE# user_case = CaseAccessors ( TEST_DOMAIN ) . get_case_by_domain_hq_user_id ( self . user . _id , USERCASE_TYPE ) #NEWLINE# self . assertTrue ( user_case . closed ) #NEWLINE# self . assertEquals ( user_case . dynamic_case_properties ( ) [ 'foo' ] , 'bar' )