annotate 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
rev   line source
0
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 from __future__ import with_statement
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 from test_temp01 import test_temp01
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3 from sys import stdout
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5 temp = test_temp01(stdout)
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6 with temp:
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
7 temp.NAME = 'foo'
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8 temp.item = 'product'
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9 for i in range(5):
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 with temp.LOOP:
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11 temp.cost = '$' + str(i)
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12 temp.number = str(i)
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
13 pass
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
14 pass
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
15 pass
3679d2d8443a Import from CVS and goto mez_xml-0.4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
16 temp.commit()