Ticket #36271: test_case.py
File test_case.py, 396 bytes (added by , 6 days ago) |
---|
Line | |
---|---|
1 | from django.template import Template,Context |
2 | from django.test import TestCase |
3 | |
4 | class TestingBug(TestCase): |
5 | def test_extend_tag_raises_error_on_relative_path(self): |
6 | with self.assertRaises(AttributeError): |
7 | temp = Template("{% extends './goa.html' %} simple test {% block content %}some new stuff{% endblock %}") |
8 | c = Context({}) |
9 | temp.render(c) |