diff --git a/openedx/tests/xblock_integration/test_review_xblock.py b/openedx/tests/xblock_integration/test_review_xblock.py index be3f2c6c1a..45512ea9c1 100644 --- a/openedx/tests/xblock_integration/test_review_xblock.py +++ b/openedx/tests/xblock_integration/test_review_xblock.py @@ -116,16 +116,12 @@ class TestReviewXBlock(SharedModuleStoreTestCase, LoginEnrollmentTestCase): cls.course_actual_url = reverse( 'courseware_section', kwargs={ - 'course_id': cls.course_actual.id.to_deprecated_string(), + 'course_id': unicode(cls.course_actual.id), 'chapter': 'Overview', 'section': 'Welcome', } ) - # refresh the course from the modulestore so that it has children - # Not sure if this is actually needed or not - cls.course_actual = modulestore().get_course(cls.course_actual.id) - # Set up for the review course where the review problems are hosted cls.course_review = CourseFactory.create( display_name='Review_Test_Course_REVIEW', @@ -183,7 +179,7 @@ class TestReviewXBlock(SharedModuleStoreTestCase, LoginEnrollmentTestCase): cls.course_review_url = reverse( 'courseware_section', kwargs={ - 'course_id': cls.course_review.id.to_deprecated_string(), + 'course_id': unicode(cls.course_review.id), 'chapter': 'Overview', 'section': 'Welcome', }