def test_medical_team_member_has_name_if_needed_returns_true_if_name_and_number_entered( self): medical_team_member = MedicalTeamMember() medical_team_member.name = 'Dr Jones' medical_team_member.phone_number = '01234 567890' self.assertIsTrue(medical_team_member.has_name_if_needed())
def test_medical_team_member_has_name_if_needed_returns_true_if_name_and_role_entered( self): medical_team_member = MedicalTeamMember() medical_team_member.name = 'Dr Jones' medical_team_member.role = 'Consultant' self.assertIsTrue(medical_team_member.has_name_if_needed())
def test_medical_team_member_has_name_if_needed_returns_true_if_name_and_org_entered( self): medical_team_member = MedicalTeamMember() medical_team_member.name = 'Dr Jones' medical_team_member.organisation = 'A NHS Trust' self.assertIsTrue(medical_team_member.has_name_if_needed())
def test_medical_team_member_has_name_if_needed_returns_true_if_name_role_org_and_number_entered( self): medical_team_member = MedicalTeamMember() medical_team_member.name = 'Dr Jones' medical_team_member.role = 'Consultant' medical_team_member.organisation = 'A NHS Trust' medical_team_member.phone_number = '01234 567890' self.assertIsTrue(medical_team_member.has_name_if_needed())
def test_medical_team_member_has_name_if_needed_returns_true_if_no_other_fields_entered( self): medical_team_member = MedicalTeamMember() medical_team_member.name = 'Dr Jones' self.assertIsTrue(medical_team_member.has_name_if_needed())