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/d/j/django-templation-HEAD/tests/tests/test_views.py   django-templation(Download)
from django.conf import settings
from templation.settings import get_resource_model
from templation.views import static_view, server_error
from templation.locals import thread_locals
from . import BaseTest
    def test_static_view(self):
        request = self.factory.get('/templation/1234')  # Path is really irrelevant here
        view = static_view(request, '1234', 'js/main.js', settings.TEMPLATION_DAV_ROOT)
        self.assertEqual(view.content, "function hello_world() {\n\tconsole.log('hello_world');\n};\n")