'Tests the {% show_placeholder %} templatetag, using lookup by pk/dict/reverse_id and passing a Page object.'

def test_show_placeholder(self):

    t = ((((((((u'{%    load    cms_tags    %}' + u'|{%    show_placeholder    "main"    ') + str(self.test_page.pk)) + '    %}') + u'|{%    show_placeholder    "main"    test_dict    %}') + u'|{%    show_placeholder    "sub"    "') + str(self.test_page.reverse_id)) + '"    %}') + u'|{%    show_placeholder    "sub"    test_page    %}')
    r = self.render(self.test_page, template=t, context_vars={'test_page': self.test_page, 'test_dict': {'pk': self.test_page.pk}})
    self.assertEqual(r, (((u'|' + self.test_data['text_main']) * 2) + ((u'|' + self.test_data['text_sub']) * 2)))
