summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index 7e14ce7..dbd367b 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -843,7 +843,7 @@ class CourseTestCases(unittest.TestCase):
self.quiz1 = Quiz.objects.get(description='demo quiz 1')
self.quiz2 = Quiz.objects.get(description='demo quiz 2')
- # create courses with
+ # create courses with disabled enrollment
self.enroll_request_course = Course.objects.create(
name="Enrollment Request Course With Enrollment Disabled",
enrollment="Enroll Request",
@@ -949,6 +949,10 @@ class CourseTestCases(unittest.TestCase):
self.assertIn(self.creator, trial_course.students.all())
self.assertTrue(trial_course.is_trial)
+ def test_enabled_enrollment_for_course(self):
+ """Test to check enrollment is closed for open course"""
+ self.assertTrue(self.course.is_active_enrollment())
+
def test_disabled_enrollment_for_open_course(self):
"""Test to check enrollment is closed for open course"""
self.assertFalse(self.open_course.is_active_enrollment())