'Raise exception for invalid variable template name'

@setup({'exception02': '{%    extends    nonexistent    %}'})
def test_exception02(self):

    if self.engine.string_if_invalid:
        with self.assertRaises(TemplateDoesNotExist):
            self.engine.render_to_string('exception02')
    else:
        with self.assertRaises(TemplateSyntaxError):
            self.engine.render_to_string('exception02')
