def test_stanPrecompiled(self):
        doc = flat.precompile(t.ul(id='nav')[t.li['one'], t.li['two'], t.slot('three')])
        df = loaders.stan(doc)
        loaded = df.load()
        self.assertEqual(loaded[0], '<ul id="nav"><li>one</li><li>two</li>')
        self.failUnless(isinstance(loaded[1], _PrecompiledSlot))
        self.assertEqual(loaded[1].name, 'three')
        self.assertEqual(loaded[2], '</ul>')
Test that a stan loader works with precompiled documents.
dataset/ETHPy150Open twisted/nevow/nevow/test/test_loaders.py/TestDocFactories.test_stanPrecompiled