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

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/p/i/piecutter-0.1.1/piecutter/tests/engines/django.py   piecutter(Download)
# -*- coding: utf-8 -*-
"""Tests around piecutter.engines.django."""
import unittest
from piecutter.engines.django import DjangoEngine
    def test_render_noop(self):
        """DjangoEngine correctly renders ``Hello world!`` template."""
        engine = DjangoEngine()
        rendered = engine.render(u'Hello world!', {})
        self.assertEqual(rendered, u'Hello world!')
    def test_render_simple(self):
        """DjangoEngine correctly renders ``Hello {{ name }}!`` template."""
        engine = DjangoEngine()
    def test_template_error(self):
        """DjangoEngine raises TemplateError in case of exception."""
        engine = DjangoEngine()