'Assert that a plugin marked as \'require_parent\' is not listed
in the plugin pool when a placeholder is specified'

def test_plugin_require_parent(self):

    ParentRequiredPlugin = type('ParentRequiredPlugin', (CMSPluginBase,), dict(require_parent=True, render_plugin=False))
    with register_plugins(ParentRequiredPlugin):
        page = api.create_page('page', 'nav_playground.html', 'en', published=True)
        placeholder = page.placeholders.get(slot='body')
        plugin_list = plugin_pool.get_all_plugins(placeholder=placeholder, page=page)
        self.assertFalse((ParentRequiredPlugin in plugin_list))
