You probably want to see how {% include %} is tested [1]. The test
case there replaces temporarily the list of template loaders, so that
it doesn't depend on any external resources [2] and restores it to the
previous state after finishing[3]. I'm not sure your tests belong
there, but if you decide to put it somewhere else you could do
something similar.
[1]: http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/templates/tests.py#L918
[2]: http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/templates/tests.py#L333
[3]: http://code.djangoproject.com/browser/django/trunk/tests/regressiontests/templates/tests.py#L415
--
Łukasz Rekucki
> --
> You received this message because you are subscribed to the Google Groups "Django developers" group.
> To post to this group, send email to django-d...@googlegroups.com.
> To unsubscribe from this group, send email to django-develop...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
>
>