summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authoradityacp2018-01-02 15:28:47 +0530
committeradityacp2018-01-02 15:28:47 +0530
commit8a062d48a0347ae43b1b9d5b1ca532387d8ad3d9 (patch)
treeefb9c6aa856157e1ff883631c96b636648445e07 /yaksh/test_models.py
parentb44db042059e69df4c4a948d6dff73604c7abf83 (diff)
parent7f14d3ef8212b1cd88a9c96a134d2bd5321a4078 (diff)
downloadonline_test-8a062d48a0347ae43b1b9d5b1ca532387d8ad3d9.tar.gz
online_test-8a062d48a0347ae43b1b9d5b1ca532387d8ad3d9.tar.bz2
online_test-8a062d48a0347ae43b1b9d5b1ca532387d8ad3d9.zip
Update to latest changes
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index 9174033..59dea5b 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -87,9 +87,9 @@ def setUpModule():
lesson = Lesson.objects.create(name='L1', description='Video Lesson',
creator=user)
learning_unit_lesson = LearningUnit.objects.create(order=1, lesson=lesson,
- learning_type='lesson')
+ type='lesson')
learning_unit_quiz = LearningUnit.objects.create(order=2, quiz=quiz,
- learning_type='quiz')
+ type='quiz')
learning_module_one.learning_unit.add(learning_unit_lesson)
learning_module_one.learning_unit.add(learning_unit_quiz)
learning_module_one.save()
@@ -214,8 +214,8 @@ class LearningUnitTestCases(unittest.TestCase):
self.quiz = Quiz.objects.get(description='demo quiz 1')
def test_learning_unit(self):
- self.assertEqual(self.learning_unit_one.learning_type, 'lesson')
- self.assertEqual(self.learning_unit_two.learning_type, 'quiz')
+ self.assertEqual(self.learning_unit_one.type, 'lesson')
+ self.assertEqual(self.learning_unit_two.type, 'quiz')
self.assertEqual(self.learning_unit_one.lesson, self.lesson)
self.assertEqual(self.learning_unit_two.quiz, self.quiz)
self.assertIsNone(self.learning_unit_one.quiz)