def _case_needs_to_be_updated(self, case):
    if case.deleted:
        return False
    assert (case.type == CASE_TYPE)
    if (bool(case.owner_id) and (case.owner_id in self.test_locations)):
        return False
    dob = case.get_case_property(DOB_PROPERTY)
    if (dob and (dob > CUT_OFF_DOB) and (not case.get_case_property(MOTHER_NAME_PROPERTY))):
        return True
    return False
def _case_needs_to_be_updated(self, case):
    if case.deleted:
        return False
    assert (case.type == CASE_TYPE)
    if (bool(case.owner_id) and (case.owner_id in self.test_locations)):
        return False
    dob = case.get_case_property(DOB_PROPERTY)
    if (dob and (dob > CUT_OFF_DOB) and (not case.get_case_property(MOTHER_NAME_PROPERTY))):
        return True
    return False