Mock updated as Django’s get_template now has two arguments.

This commit is contained in:
Xavier Ordoquy 2014-01-28 18:54:49 +01:00
parent da89cfc937
commit 23a20160c4

View File

@ -50,7 +50,7 @@ class TemplateHTMLRendererTests(TestCase):
"""
self.get_template = django.template.loader.get_template
def get_template(template_name):
def get_template(template_name, dirs=None):
if template_name == 'example.html':
return Template("example: {{ object }}")
raise TemplateDoesNotExist(template_name)