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 {"make": glyph.form(Test), "zero": glyph.form(self)}
def index(self): return dict(test=glyph.form(Test))
def GET(self): return {'make':glyph.form(Test), 'zero': glyph.form(self)}