def test_is_class_full(self): test_class = ClassList(3) test_class.add_student('Harry') test_class.add_student('Hermione') self.assertFalse(test_class.is_class_full()) test_class.add_student('Ron') self.assertTrue(test_class.is_class_full())
def test_IS_CLASS_FULL_when_class_is_empty_or_fillable_check_return_False( self): test_class = ClassList(2) self.assertFalse(test_class.is_class_full()) student = "Kitty Cat" test_class.add_student(student) self.assertFalse(test_class.is_class_full())
def test_is_class_full_returns_false_when_class_is_empty_or_not_full(self): test_class = ClassList(3) student_a = "Michael Burnham" student_b = "Philippa Georgiou" self.assertFalse(test_class.is_class_full()) test_class.add_student(student_a) test_class.add_student(student_b) self.assertFalse(test_class.is_class_full())
def test_is_empty_is_not_full(self): test_class = ClassList(5) test_class2 = ClassList(2) test_class.add_student('Student1') test_class.add_student('Student2') test_class.add_student('Student3') self.assertFalse(test_class.is_class_full(test_class)) self.assertFalse(test_class.is_class_full(test_class2))
def test_is_class_full(self): #tests whether is_class_full works as intended test_class = ClassList(1) test_class.add_student('Jordan') self.assertTrue(test_class.is_class_full()) test_class_two = ClassList(2) test_class_two.add_student('Ben') test_class_two.add_student('Neb') self.assertTrue(test_class_two.is_class_full())
def test_is_class_full_with_empty_or_partial_class(self): test_class = ClassList(3) # Test before adding students self.assertFalse(test_class.is_class_full()) test_class.add_student('Harry') test_class.add_student('Ron') # Test after adding students self.assertFalse(test_class.is_class_full())
def test_is_class_empty_or_class_not_full(self): test_class = ClassList(6) test_class.add_student('Ryu') test_class.add_student('Chun-Li') test_class.add_student('Ken') # not adding any people to this list test_class2 = ClassList(5) # expexting class to not be full self.assertFalse(test_class.is_class_full()) # expecting class to be empty self.assertFalse(test_class2.is_class_full())
def test_is_class_full(self): test_class = ClassList(4) test_class.add_student('Farmaajo') test_class.add_student('Mukami') test_class.add_student('Abdi') test_class.add_student('Bisharo') self.assertTrue(test_class.is_class_full())
def test_IS_CLASS_FULL_when_class_is_full_check_return_True(self): test_class = ClassList(2) student = "Kitty Cat" classmate = "Puppy Dog" test_class.add_student(student) test_class.add_student(classmate) self.assertTrue(test_class.is_class_full())
def test_is_class_empty(self): test_list = ClassList(4) test_list.add_student('James Hetfield') test_list.add_student('Lars Ulrich') test_list.add_student('Kirk Hammett') self.assertFalse(test_list.is_class_full())
def test_is_class_full(self): test_list = ClassList(4) test_list.add_student('James Hetfield') test_list.add_student('Lars Ulrich') test_list.add_student('Kirk Hammett') test_list.add_student('Rob Trujillo') self.assertTrue(test_list.is_class_full())
def test_is_class_full_when_class_is_full(self): test_class = ClassList(2) test_class.add_student('Jesse') test_class.add_student('James') self.assertTrue(test_class.is_class_full())
def test_is_class_full_class_full(self): test_class = ClassList(5) test_class.add_student('Student1') test_class.add_student('Student2') test_class.add_student('Student3') test_class.add_student('Student4') test_class.add_student('Student5') self.assertTrue(test_class.is_class_full(test_class))
def test_is_class_full_returns_true_when_class_is_full(self): test_class = ClassList(3) student_a = "Michael Burnham" student_b = "Philippa Georgiou" student_c = "Gabriel Lorca" test_class.add_student(student_a) test_class.add_student(student_b) test_class.add_student(student_c) self.assertTrue(test_class.is_class_full())
def test_class_full_returns_true(self): test_class = ClassList(3) test_class.add_student('Harry') test_class.add_student('Hermione') test_class.add_student('Ron') result = test_class.is_class_full() self.assertTrue(result)
def test_class_full_returns_false_when_empty(self): test_class = ClassList(5) test_class.add_student('Harry') test_class.add_student('Hermione') test_class.add_student('Ron') result = test_class.is_class_full() self.assertFalse(result)
def test_is_class_not_full(self): test_class = ClassList(4) test_class.add_student('Harry') test_class.add_student('Larry') test_class.add_student('Berry') self.assertFalse(test_class.is_class_full())
def test_is_class_full(self): test_class = ClassList(3) test_class.add_student('Harry') test_class.add_student('Larry') test_class.add_student('Berry') self.assertTrue(test_class.is_class_full())
def test_is_class_full_when_class_is_empty(self): test_class = ClassList(2) test_class.add_student('Nate') self.assertFalse(test_class.is_class_full(2))
def test_is_class_full_when_class_is_full(self): test_class = ClassList(2) test_class.add_student('Nate') test_class.add_student('Taylor') self.assertTrue(test_class.is_class_full(2))
def test_is_class_full_return_false_when_empty_or_not_full(self): test_list = ClassList(3) test_list.add_student('Billy Bob') test_list.add_student('Fat Albert') self.assertFalse(test_list.is_class_full(3))
def test_is_class_full_method(self): test_class = ClassList(2) test_class.add_student('Keanu Reeves') test_class.add_student('Snoop Dog') self.assertTrue(test_class.is_class_full())
def test_is_class_full(self): test_class = ClassList(2) test_class.add_student('Student 1') test_class.add_student('Student 2') self.assertTrue(test_class.is_class_full())
def test_is_class_full_class_not_full(self): test_class = ClassList(3) test_class.add_student('Test Student 1') test_class.add_student('Test Student 2') self.assertFalse(test_class.is_class_full())
def test_is_class_full_when_class_not_full(self): test_class = ClassList(3) test_class.add_student('Sierra') test_class.add_student('Quinn') #only 2 students in class that holds 3 self.assertFalse(test_class.is_class_full())
def test_if_class_is_full_when_it_is(self): test_class = ClassList(2) test_class.add_student('Elizabeth Warren') test_class.add_student('John Mc Cain') self.assertTrue(test_class.is_class_full())
def test_if_class_is_full_when_empty(self): test_class = ClassList(3) self.assertFalse(test_class.is_class_full())
def test_is_class_empty(self): test_class = ClassList(2) self.assertFalse(test_class.is_class_full())
def test_is_class_full_when_empty_or_not_full(self): test_class = ClassList(2) self.assertFalse(test_class.is_class_full()) test_class.add_student('Qaalib') self.assertFalse(test_class.is_class_full())
def test_is_class_full_when_class_is_full(self): test_list = ClassList(2) test_list.add_student('Billy Bob') test_list.add_student('Fat Albert') self.assertTrue(test_list.is_class_full(2))