

def implEnrollmentRequest1(self, inst):
    self.assertEqual(inst.created.date, FHIRDate('2014-08-16').date)
    self.assertEqual(inst.created.as_json(), '2014-08-16')
    self.assertEqual(inst.id, '22345')
    self.assertEqual(inst.identifier[0].system, 'http://happyvalley.com/enrollmentrequest')
    inst.assertEqual(inst.identifier[0].value, 'EN22345')
    self.assertEqual(inst.relationship.code, 'spouse')
    self.assertEqual(inst.text.div, '<div>A human-readable rendering of the EnrollmentRequest.</div>')
    self.assertEqual(inst.text.status, 'generated')

dataset/ETHPy150Open smart-on-fhir/client-py/fhirclient/models/enrollmentrequest_tests.py EnrollmentRequestTests.implEnrollmentRequest1/VarMisuse@72/114 `self`->`inst`