def bad_question_grade(self): grading = Grading(50, self.quiz, self.questionbank, self.studentClass, 5) self.assertNotEqual( 50, grading.change_question_grade_for_student(self.question, 40, self.studentClass, "charles", self.grade))
def good_question_grade(self): grading = Grading(50, self.quiz, self.questionbank, self.studentClass, 5) self.assertEqual( 50, grading.change_question_grade_for_student(self.question, 50, self.studentClass, 'charles', self.grade))
def bad_grade(self): grading = Grading(50, self.quiz, self.questionbank, self.studentClass, 5) self.assertNotEqual( 100, grading.change_grade(self.question, 100, self.result))
def bad_answer(self): grading = Grading(50, self.quiz, self.questionbank, self.studentClass, 5) self.assertNotEqual("goodbye", grading.change_answer(self.question, "hello"))
def bad_weight(self): grading = Grading(50, self.quiz, self.questionbank, self.studentClass, 5) self.assertNotEqual(40, grading.change_weight(50))
def bad_pass_grade(self): grading = Grading(50, self.quiz, self.questionbank, self.studentClass, 5) self.assertNotEqual(40, grading.change_pass_grade(60))
def good_answer(self): grading = Grading(50, self.quiz, self.questionbank, self.studentClass, 5) self.assertEqual('hello', grading.change_answer(self.question, 'hello'))