'Regression test for #15721, ``{% include %}`` and ``RequestContext``
not playing together nicely.'

def test_include_only(self):

    ctx = RequestContext(self.fake_request, {u'var': u'parent'})
    self.assertEqual(template.Template(u'{%    include    "child"    %}').render(ctx), u'parent')
    self.assertEqual(template.Template(u'{%    include    "child"    only    %}').render(ctx), u'none')
