Mercurial > mez_xml
annotate test/test01.py @ 5:d310e097c6de tip
Replace & with &
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 02 Feb 2014 22:12:15 +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() |