Пример #1
0
    def test_is_class_not_full(self):
        test_class = ClassList(2)
        test_class.add_student('Amanda')

        self.assertFalse(test_class.is_class_full())
Пример #2
0
 def test_is_class_full_when_class_is_empty(self):
     test_class = ClassList(3)
     test_class.add_student('Amazing Student1')
     test_class.add_student('Amazing Student2')
     self.assertFalse(test_class.is_class_full(3))
Пример #3
0
    def test_is_class_full(self):
        test_class = ClassList(1)
        test_class.add_student('Amanda')

        self.assertTrue(test_class.is_class_full())
Пример #4
0
 def test_is_class_full_when_class_is_full(self):
     test_class = ClassList(2)
     test_class.add_student('New Student1')
     test_class.add_student('New Student2')
     self.assertTrue(test_class.is_class_full(2))