Esempio n. 1
0
 def test__get_course_enrollment_domain(self):
     """
     Tests the _get_course_enrollment_domain utility function
     """
     self.assertIsNone(_get_course_enrollment_domain("I/DONT/EXIST"))
     self.assertIsNone(_get_course_enrollment_domain(self.course.id))
     self.assertEqual(self.shib_course.enrollment_domain, _get_course_enrollment_domain(self.shib_course.id))
Esempio n. 2
0
 def test__get_course_enrollment_domain(self):
     """
     Tests the _get_course_enrollment_domain utility function
     """
     self.assertIsNone(_get_course_enrollment_domain(SlashSeparatedCourseKey("I", "DONT", "EXIST")))
     self.assertIsNone(_get_course_enrollment_domain(self.course.id))
     self.assertEqual(self.shib_course.enrollment_domain, _get_course_enrollment_domain(self.shib_course.id))
Esempio n. 3
0
 def test__get_course_enrollment_domain(self):
     """
     Tests the _get_course_enrollment_domain utility function
     """
     self.assertIsNone(_get_course_enrollment_domain("I/DONT/EXIST"))
     self.assertIsNone(_get_course_enrollment_domain(self.course.id))
     self.assertEqual(self.shib_course.enrollment_domain, _get_course_enrollment_domain(self.shib_course.id))