Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 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)
Exemple #4
0
 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
     )