Exemple #1
0
    def test_get_programs(self):
        """adds students and checks what programs are returned"""
        test_school = School("Computing and Academic Studies")
        test_student_1 = Student("Bill", "Smith", "A0100000000", "CIT")
        test_student_2 = Student("Ken", "Rodgers", "A0100000001", "CSD")
        test_student_3 = Student("Sally", "Jones", "A0100000002", "CSD")
        test_school.add_student(test_student_1)
        test_school.add_student(test_student_2)
        test_school.add_student(test_student_3)

        self.assertEqual(test_school.get_programs(), ["CIT", "CSD"])