'Various checks here:
* page structure is copied
* no plugin is copied'

def test_copy_langs_no_content(self):

    site = 1
    number_start_plugins = CMSPlugin.objects.all().count()
    out = StringIO()
    management.call_command(u'cms', u'copy', u'lang', u'--from-lang=en', u'--to-lang=de', u'--skip-content', interactive=False, stdout=out)
    pages = Page.objects.on_site(site).drafts()
    for page in pages:
        self.assertEqual(set((u'en', u'de')), set(page.get_languages()))
    self.assertEqual(CMSPlugin.objects.all().count(), number_start_plugins)
    self.assertEqual(CMSPlugin.objects.filter(language=u'en').count(), number_start_plugins)
    self.assertEqual(CMSPlugin.objects.filter(language=u'de').count(), 0)
    root_page = Page.objects.on_site(site).get_home()
    root_plugins = CMSPlugin.objects.filter(placeholder=root_page.placeholders.get(slot=u'body'))
    (first_plugin_en, _) = root_plugins.get(language=u'en', parent=None).get_plugin_instance()
    first_plugin_de = None
    with self.assertRaises(CMSPlugin.DoesNotExist):
        (first_plugin_de, _) = root_plugins.get(language=u'de', parent=None).get_plugin_instance()
    self.assertIsNone(first_plugin_de)
    stack_plugins = CMSPlugin.objects.filter(placeholder=StaticPlaceholder.objects.order_by(u'?')[0].draft)
    (stack_text_en, _) = stack_plugins.get(language=u'en', plugin_type=u'TextPlugin').get_plugin_instance()
    with self.assertRaises(CMSPlugin.DoesNotExist):
        (stack_text_de, _) = stack_plugins.get(language=u'de', plugin_type=u'TextPlugin').get_plugin_instance()
