'Test that blocks used from a library can have children.'

def test_block_with_children(self):

    library = LibraryFactory.create(modulestore=self.store)
    vert_block = ItemFactory.create(category='vertical', parent_location=library.location, user_id=self.user_id, publish_item=False, modulestore=self.store)
    child_block = ItemFactory.create(category='html', parent_location=vert_block.location, user_id=self.user_id, publish_item=False, metadata={'data': 'Hello    world'}, modulestore=self.store)
    self.assertEqual(child_block.parent.replace(version_guid=None, branch=None), vert_block.location)
