'If an existing title in the target language has plugins in a placeholder
and the command is called with *force-copy*, the plugins are copied on
top of the existing one'

def test_copy_filled_placeholder_force_copy(self):

    site = 1
    number_start_plugins = CMSPlugin.objects.all().count()
    root_page = Page.objects.on_site(site).get_home()
    create_title(u'de', u'root    page    de', root_page)
    ph = root_page.placeholders.get(slot=u'body')
    add_plugin(ph, u'TextPlugin', u'de', body=u'Hello    World')
    root_plugins = CMSPlugin.objects.filter(placeholder=ph)
    (text_de_orig, _) = root_plugins.get(language=u'de', plugin_type=u'TextPlugin').get_plugin_instance()
    out = StringIO()
    management.call_command(u'cms', u'copy', u'lang', u'--from-lang=en', u'--to-lang=de', u'--force', interactive=False, stdout=out)
    CMSPlugin.objects.filter(placeholder=root_page.placeholders.get(slot=u'body'))
    self.assertEqual(CMSPlugin.objects.filter(language=u'en').count(), number_start_plugins)
    self.assertEqual(CMSPlugin.objects.filter(language=u'de').count(), (number_start_plugins + 1))
