def testTTRenderPositionContent(self):
        Position.objects.add_object(self.samplePosition, self.text1)
        
        pc = Position.objects.get_content(self.samplePosition, as_contenttype=False)[0]
        
        t = "{% load position_tags %}{% render_position_content pc %}"
        self.assertEqual(render(t, {"pc": pc}), "<div>1 - Joe</div>")
        
        t = "{% load position_tags %}{% render_position_content pc with template=position_test/custom_template.html %}"
        self.assertEqual(render(t, {"pc": pc}), "<div>CUSTOM - 1 - Joe</div>")
{% render_position_content [PositionContent] [with] [suffix=S] [template=T] %}
dataset/ETHPy150Open callowayproject/django-kamasutra/positions/tests.py/PositionsTestCase.testTTRenderPositionContent