'test namespace initialization in a base inherited template that doesnt otherwise access the namespace'

def test_inheritance(self):

    collection = lookup.TemplateLookup()
    collection.put_string('base.html', '\n                                                <%namespace    name="foo"    file="ns.html"    inheritable="True"/>\n\n                                                ${next.body()}\n')
    collection.put_string('ns.html', '\n                                                <%def    name="bar()">\n                                                                this    is    ns.html->bar\n                                                </%def>\n                                ')
    collection.put_string('index.html', '\n                                                <%inherit    file="base.html"/>\n\n                                                this    is    index\n                                                ${self.foo.bar()}\n                                ')
    assert (result_lines(collection.get_template('index.html').render()) == ['this    is    index', 'this    is    ns.html->bar'])
