def test_patterned(self):
        doc = t.div[t.p[t.span(pattern='inner')['something']]]
        df = loaders.stan(doc, pattern='inner')
        self.assertEquals(df.load()[0].tagName, 'span')
        self.assertEquals(df.load()[0].children[0], 'something')
Test fetching a specific part (a pattern) of the document.
dataset/ETHPy150Open twisted/nevow/nevow/test/test_loaders.py/TestDocFactories.test_patterned