Exemple #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())
Exemple #2
0
    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())
Exemple #3
0
    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())
Exemple #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())