summaryrefslogtreecommitdiff
path: root/yaksh/tests.py
diff options
context:
space:
mode:
authorprathamesh2016-03-07 16:29:47 +0530
committerprathamesh2016-03-07 16:29:47 +0530
commite94f589eea5fbe85253d35f836d308bbfd339ff0 (patch)
treefed6bee014f126eb5c435e2ed53235a2ba9e224d /yaksh/tests.py
parentb58a0b9831d8e6434362f776c89076c2d84e9b26 (diff)
downloadonline_test-e94f589eea5fbe85253d35f836d308bbfd339ff0.tar.gz
online_test-e94f589eea5fbe85253d35f836d308bbfd339ff0.tar.bz2
online_test-e94f589eea5fbe85253d35f836d308bbfd339ff0.zip
Added a checkpoint, quizzes will be available only if the user is
enrolled for the respective course.
Diffstat (limited to 'yaksh/tests.py')
-rw-r--r--yaksh/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/tests.py b/yaksh/tests.py
index 17e6130..848df74 100644
--- a/yaksh/tests.py
+++ b/yaksh/tests.py
@@ -418,7 +418,7 @@ class CourseTestCases(unittest.TestCase):
self.assertSequenceEqual(self.course.get_rejected(), [self.student2])
self.assertSequenceEqual(self.course.get_enrolled(), [self.student1])
- self.assertTrue(self.course.is_enrolled(self.student1.id))
+ self.assertTrue(self.course.is_enrolled(self.student1))
def test_get_quizzes(self):
""" Test get_quizzes method of Courses"""