#NEWLINE# def test_ancestor_location_sync( self ) : #NEWLINE# #INDENT# original_setting = self . domain . call_center_config . user_location_ancestor_level #NEWLINE# self . domain . call_center_config . user_location_ancestor_level = 2 #NEWLINE# self . domain . save ( ) #NEWLINE# self . user . set_location ( self . grandchild_location ) #NEWLINE# self . user . save ( ) #NEWLINE# self . assertCallCenterCaseOwner ( self . root_location . _id ) #NEWLINE# self . user . unset_location ( ) #NEWLINE# self . user . save ( ) #NEWLINE# self . assertCallCenterCaseOwner ( '' ) #NEWLINE# self . user . set_location ( self . child_location ) #NEWLINE# self . user . save ( ) #NEWLINE# self . assertCallCenterCaseOwner ( self . root_location . _id ) #NEWLINE# self . domain . call_center_config . user_location_ancestor_level = original_setting #NEWLINE# self . domain . save ( )