Exemple #1
0
    def test_get_all_students(self):
        """creates 3 students and adds them to the school and sees how many 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(len(test_school.get_all_students()), 3)