@skipIf(not CACHE_TIMEOUT, "Caching is disabled.")
    def test_render_placement_cached(self):
        template = Template(
            "{{% load adcode_tags %}}{{% render_placement '{0}' %}}".format(self.placement.slug)
        )
        context = RequestContext(self.request, {})
        template.render(context)
        with self.assertNumQueries(0):
            template.render(context)
Subsequent placement renders should be cached.
dataset/ETHPy150Open mlavin/django-ad-code/adcode/tests/test_performance.py/QueryCountsTestCase.test_render_placement_cached