'Regular Studio courses should not see \'View in Studio\' for child verticals of verticals.'

def test_view_in_studio_link_only_in_top_level_vertical(self):

    self.setup_mongo_course()
    result_fragment = self.module.render(STUDENT_VIEW, context=self.default_context)
    parts = result_fragment.content.split('data-block-type="vertical"')
    self.assertEqual(3, len(parts), 'Did    not    find    two    vertical    blocks')
    self.assertIn('View    Unit    in    Studio', parts[0])
    self.assertNotIn('View    Unit    in    Studio', parts[1])
    self.assertNotIn('View    Unit    in    Studio', parts[2])
