@@ -958,8 +958,9 @@ def test_search_by_course_id(self, is_es_disabled):
958958 Tests searching with `course_id` provided
959959 """
960960
961- self ._create_annotation (text = 'First one. I am a simple note.' , course_id = "u'edX/DemoX/Demo_Course'" )
962- self ._create_annotation (text = 'Second note. I am a simple note.' , course_id = "u'edX/DemoX/Demo_Course'" )
961+ self ._create_annotation (text = 'First one. I am a simple note.' , course_id = "edX/DemoX/Demo_Course" )
962+ self ._create_annotation (text = 'Second note. I am a simple note.' , course_id = "edX/DemoX/Demo_Course" )
963+ self ._create_annotation (text = 'Second note. I am a simple note.' , course_id = "edX/DemoX-v1:Demo+Demo_Course" )
963964 self ._create_annotation (text = 'Third note. I am a simple note.' , course_id = 'b' )
964965 self ._create_annotation (text = 'Fourth note. I am a simple note.' , course_id = 'c' )
965966
@@ -968,8 +969,10 @@ def verify_course_id_search():
968969 """
969970 Verify search results based on course id operation.
970971 """
971- results = self ._get_search_results (course_id = "u' edX/DemoX/Demo_Course' " , text = 'I am a simple note' )
972+ results = self ._get_search_results (course_id = "edX/DemoX/Demo_Course" , text = 'I am a simple note' )
972973 self .assertEqual (results ['total' ], 2 )
974+ results = self ._get_search_results (course_id = "edX/DemoX-v1:Demo+Demo_Course" , text = 'I am a simple note' )
975+ self .assertEqual (results ['total' ], 1 )
973976
974977 results = self ._get_search_results (course_id = "b" , text = 'I am a simple note' )
975978 self .assertEqual (results ['total' ], 1 )
0 commit comments