'Errors raised while compiling nodes should include the token
information.'

def test_compile_tag_error(self):

    engine = Engine(debug=True, libraries={'bad_tag': 'template_tests.templatetags.bad_tag'})
    with self.assertRaises(RuntimeError) as e:
        engine.from_string('{%    load    bad_tag    %}{%    badtag    %}')
    self.assertEqual(e.exception.template_debug['during'], '{%    badtag    %}')
