def instantiate_from(self, filename):
        datadir = os.environ.get('FHIR_UNITTEST_DATADIR') or ''
        with io.open(os.path.join(datadir, filename), 'r', encoding='utf-8') as handle:
            js = json.load(handle)
            self.assertEqual("EnrollmentRequest", js["resourceType"])
        return enrollmentrequest.EnrollmentRequest(js)
dataset/ETHPy150Open smart-on-fhir/client-py/fhirclient/models/enrollmentrequest_tests.py/EnrollmentRequestTests.instantiate_from/original