'Tests a placeholder won\'t render a ghost plugin or any of it\'s children.'

def test_placeholder_render_ghost_plugin_with_child(self):

    page_en = create_page('page_en', 'col_two.html', 'en')
    placeholder_en = page_en.placeholders.get(slot='col_left')
    plugin = CMSPlugin.objects.create(language='en', plugin_type='LinkPlugin', position=1, placeholder=placeholder_en, parent=None)
    add_plugin(placeholder_en, 'LinkPlugin', 'en', target=plugin, name='invalid', external_link='http://example.com/')
    add_plugin(placeholder_en, 'LinkPlugin', 'en', name='valid', external_link='http://example.com/')
    context_en = SekizaiContext()
    context_en['request'] = self.get_request(language='en', page=page_en)
    content_en = _render_placeholder(placeholder_en, context_en)
    self.assertEqual(content_en.strip(), '<a    href="http://example.com/">valid</a>')
