'#15721 -- ``{% include %}`` and ``RequestContext`` should work
together.'

def test_include_only(self):

    engine = Engine(loaders=[('django.template.loaders.locmem.Loader', {'child': '{{    var|default:"none"    }}'})])
    request = RequestFactory().get('/')
    ctx = RequestContext(request, {'var': 'parent'})
    self.assertEqual(engine.from_string('{%    include    "child"    %}').render(ctx), 'parent')
    self.assertEqual(engine.from_string('{%    include    "child"    only    %}').render(ctx), 'none')
