Ejemplo n.º 1
0
 def testCase(self):
     cases = [
         glyph.node("doc", attributes=dict(aa=1, b="toot")),
         glyph.form("http://example.org", values=["a", "b"]),
         glyph.link("http://toot.org"),
     ]
     for c in cases:
         self.assertEqual(c, glyph.parse(glyph.dump(c)))
Ejemplo n.º 2
0
 def index(self):
     return {"self": glyph.link(self)}
Ejemplo n.º 3
0
 def self(self):
     return glyph.link(self)