'Test that Cleaning a placeholder only affect current language contents'

def test_empty_placeholder_in_correct_language(self):

    page_en = create_page('EmptyPlaceholderTestPage    (EN)', 'nav_playground.html', 'en')
    ph = page_en.placeholders.get(slot='body')
    add_plugin(ph, 'TextPlugin', 'en', body='Hello    World    EN    1')
    add_plugin(ph, 'TextPlugin', 'en', body='Hello    World    EN    2')
    create_title('de', page_en.get_title(), page_en, slug=page_en.get_slug())
    add_plugin(ph, 'TextPlugin', 'de', body='Hello    World    DE')
    add_plugin(ph, 'TextPlugin', 'de', body='Hello    World    DE    2')
    add_plugin(ph, 'TextPlugin', 'de', body='Hello    World    DE    3')
    self.assertEqual(ph.get_plugins('en').count(), 2)
    self.assertEqual(ph.get_plugins('de').count(), 3)
    (admin_user, staff) = self._get_guys()
    endpoint = self.get_clear_placeholder_url(ph, language='de')
    with self.login_user_context(admin_user):
        response = self.client.post(endpoint, {'test': 0})
    self.assertEqual(response.status_code, 302)
    self.assertEqual(ph.get_plugins('en').count(), 2)
    self.assertEqual(ph.get_plugins('de').count(), 0)
