'# 16770 -- The template system doesn\'t wrap exceptions, but annotates
them.'

def test_no_wrapped_exception(self):

    engine = Engine(debug=True)
    c = Context({'coconuts': (lambda : (42 / 0))})
    t = engine.from_string('{{    coconuts    }}')
    with self.assertRaises(ZeroDivisionError) as e:
        t.render(c)
    debug = e.exception.template_debug
    self.assertEqual(debug['start'], 0)
    self.assertEqual(debug['end'], 14)
