'Using \'self\' in the context should not throw errors (#24538).'

def test_self_context(self):

    template = self.engine.from_string('hello    {{    foo    }}!')
    content = template.render(context={'self': 'self', 'foo': 'world'})
    self.assertEqual(content, 'hello    world!')
