Mercurial > mez_xml
diff test/test01.py @ 0:3679d2d8443a
Import from CVS and goto mez_xml-0.4
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 13 Feb 2008 22:33:51 +0800 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/test01.py Wed Feb 13 22:33:51 2008 +0800 @@ -0,0 +1,16 @@ +from __future__ import with_statement +from test_temp01 import test_temp01 +from sys import stdout + +temp = test_temp01(stdout) +with temp: + temp.NAME = 'foo' + temp.item = 'product' + for i in range(5): + with temp.LOOP: + temp.cost = '$' + str(i) + temp.number = str(i) + pass + pass + pass +temp.commit()