Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/f/e/FeinCMS-Code-0.0.2/tests.py   FeinCMS-Code(Download)
from django.core.management import call_command
from feincms.module.page.models import Page
from feincms_code.content import CodeContent
 
Page.register_templates(
    def test_python(self):
        cc = CodeContent(code="import test", language="python")
        self.assertEqual(
            cc.html(),
            """<div class="highlight"><pre><span class="kn">import</span> """