summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authoradityacp2018-03-20 12:26:18 +0530
committeradityacp2018-03-20 12:26:18 +0530
commitd015f6e34d67ac71814f91f99d2bbdfa3458f3cc (patch)
tree8eeedbc6ecda6844e04cc34598a3b4c663f2a787 /yaksh
parentb0df46ec36a043d3c51014cf5746d7def9cb17b9 (diff)
downloadonline_test-d015f6e34d67ac71814f91f99d2bbdfa3458f3cc.tar.gz
online_test-d015f6e34d67ac71814f91f99d2bbdfa3458f3cc.tar.bz2
online_test-d015f6e34d67ac71814f91f99d2bbdfa3458f3cc.zip
Fix models test case
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index 6cedc4b..a2613df 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -1667,7 +1667,7 @@ class CourseTestCases(unittest.TestCase):
def test_course_time_remaining_to_start(self):
# check if course has 0 days left to start
- self.assertEqual(self.course.days_remain_to_start(), 0)
+ self.assertEqual(self.course.days_before_start(), 0)
# check if course has some days left to start
course_time = self.course.start_enroll_time
@@ -1679,7 +1679,7 @@ class CourseTestCases(unittest.TestCase):
updated_course = Course.objects.get(id=self.course.id)
time_diff = updated_course.start_enroll_time - timezone.now()
actual_days = time_diff.days + 1
- self.assertEqual(updated_course.days_remain_to_start(), actual_days)
+ self.assertEqual(updated_course.days_before_start(), actual_days)
self.course.start_enroll_time = course_time
self.course.save()