annotate test/test01.py @ 2:c6db338d2d64 R0_4

Fix typo in setup.py
author Thinker K.F. Li <thinker@branda.to>
date Wed, 13 Feb 2008 22:37:07 +0800
parents 3679d2d8443a
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()