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)))
def index(self): return {"self": glyph.link(self)}
def self(self): return glyph.link(self)