def test_patient_health_id(self): try: patient = Patient() patient.health_id = '12345' patient.save() except IntegrityError: return HttpResponseServerError() self.assertEqual(patient.health_id, '12345')