'Test the rendering of the Studio author view.'

def test_render_author_view(self):

    def create_studio_context(root_xblock, is_unit_page):
        '\n                                                Context    for    rendering    the    studio    "author_view".\n                                                '
        return {'reorderable_items': set(), 'root_xblock': root_xblock, 'is_unit_page': is_unit_page}
    context = create_studio_context(self.conditional, False)
    html = self.module_system.render(self.conditional, AUTHOR_VIEW, context).content
    self.assertIn('This    is    a    secret    HTML', html)
    context = create_studio_context(self.sequence, True)
    html = self.module_system.render(self.conditional, AUTHOR_VIEW, context).content
    self.assertNotIn('This    is    a    secret    HTML', html)
