'Test that LibraryRoot.author_view can run and includes content from its
children.
We have to patch the runtime (module system) in order to be able to
render blocks in our test environment.'

def test_library_author_view(self):

    message = u'Hello    world'
    library = LibraryFactory.create(modulestore=self.store)
    ItemFactory.create(category='html', parent_location=library.location, user_id=self.user_id, publish_item=False, modulestore=self.store, data=message)
    library = self.store.get_library(library.location.library_key)
    context = {'reorderable_items': set()}
    result = library.render(AUTHOR_VIEW, context)
    self.assertIn(message, result.content)
