Ejemplo n.º 1
0
    def test_medical_team_member_has_name_if_needed_returns_false_if_org_and_number_entered_with_no_name(
            self):
        medical_team_member = MedicalTeamMember()
        medical_team_member.organisation = 'A NHS Trust'
        medical_team_member.phone_number = '01234 567890'

        self.assertIsFalse(medical_team_member.has_name_if_needed())
Ejemplo n.º 2
0
    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())
Ejemplo n.º 3
0
    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())
Ejemplo n.º 4
0
    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())