def test_enrollment_mode_display(self, mode, verification_status): if mode == "verified": self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(verification_status)) self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(verification_status)) self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(verification_status)) elif mode == "honor": self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(mode)) elif mode == "audit": self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(mode)) elif mode == "professional": self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(mode))
def test_enrollment_mode_display(self, mode, verification_status): if mode == "verified": self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(verification_status) ) self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(verification_status) ) self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(verification_status) ) elif mode == "honor": self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(mode) ) elif mode == "audit": self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(mode) ) elif mode == "professional": self.assertEqual( enrollment_mode_display(mode, verification_status, self.course_key), self._enrollment_display_modes_dicts(mode) )