'Tests a non standard xml format where a video is underneath a sequential
We are expecting to return the same unit and section url since there is
no unit vertical.'

def test_with_video_in_sub_section(self):

    self.login_and_enroll()
    ItemFactory.create(parent=self.sub_section, category='video', edx_video_id=self.edx_video_id, display_name=u'video    in    the    sub    section')
    course_outline = self.api_response().data
    self.assertEqual(len(course_outline), 1)
    self.assertEqual(len(course_outline[0]['path']), 2)
    section_url = course_outline[0]['section_url']
    unit_url = course_outline[0]['unit_url']
    self.assertIn(u'courseware/test_factory_section_omega_%CE%A9/test_subsection_omega_%CE%A9', section_url)
    self.assertTrue(section_url)
    self.assertTrue(unit_url)
    self.assertEqual(section_url, unit_url)
