'Ensure copying a plugin from placeholder A
registered with admin A calls the copy plugin hooks
on the target placeholder\'s registered admin.'

def test_placeholder_post_copy_hook_resolve(self):

    superuser = self.get_superuser()
    exception = PlaceholderHookException
    message = 'copy    plugin    hook    has    been    called.'
    example_1 = self._obj
    source_placeholder = example_1.placeholder
    plugin = self._add_plugin_to_placeholder(source_placeholder)
    endpoint = self.get_copy_plugin_uri(plugin, container=Example1)
    example_2 = CharPksExample.objects.create(char_1='one', slug='two')
    target_placeholder = example_2.placeholder_1
    with self.login_user_context(superuser):
        with self.assertRaisesMessage(exception, message):
            data = {'source_language': plugin.language, 'source_placeholder_id': source_placeholder.pk, 'source_plugin_id': plugin.pk, 'target_language': plugin.language, 'target_placeholder_id': target_placeholder.pk}
            self.client.post(endpoint, data)
