def existing_occurrence_case(self): """ Get the existing occurrence case for this nikshay ID, or None if no occurrence case exists """ if self.existing_person_case: try: return get_open_occurrence_case_from_person( self.domain, self.existing_person_case.case_id) except ENikshayCaseNotFound: return None
def existing_occurrence_case(self): """ Get the existing occurrence case for this nikshay ID, or None if no occurrence case exists """ if self.existing_person_case: try: return get_open_occurrence_case_from_person( self.domain, self.existing_person_case.case_id ) except ENikshayCaseNotFound: return None
def test_get_open_occurrence_case_from_person(self): self.assertEqual( get_open_occurrence_case_from_person(self.domain, self.person_id).case_id, self.occurrence_id)
def test_get_open_occurrence_case_from_person(self): self.assertEqual( get_open_occurrence_case_from_person(self.domain, self.person_id).case_id, self.occurrence_id )