def test_medical_team_member_has_name_if_needed_returns_false_if_role_and_number_entered_with_no_name( self): medical_team_member = MedicalTeamMember() medical_team_member.role = 'Consultant' medical_team_member.phone_number = '01234 567890' self.assertIsFalse(medical_team_member.has_name_if_needed())
def test_medical_team_member_has_name_if_needed_returns_false_if_role_and_org_entered_with_no_name( self): medical_team_member = MedicalTeamMember() medical_team_member.role = 'Consultant' medical_team_member.organisation = 'A NHS Trust' self.assertIsFalse(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_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())