def build_for_404(cls): severity = IssueSeverity.ERROR.value code = Stu3IssueTypeConfig.get_fhir_code_for_not_found() return cls.build_outcome(severity, code)
def verify_deleted_response(self, response): self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) operation_outcome = self.get_fhir_obj_from_json_response(response) self.assertTrue(isinstance(operation_outcome, OperationOutcome)) self.assertEqual(Stu3IssueTypeConfig.get_fhir_code_for_not_found(), operation_outcome.issue[0].code)