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