1.1 --- a/macrotest.py Sun Jan 16 01:16:41 2005 +0000
1.2 +++ b/macrotest.py Sun Jan 16 01:59:40 2005 +0000
1.3 @@ -35,6 +35,16 @@
1.4 # Assignment should not be transformed.
1.5
1.6 x2_d = parseString(doc)
1.7 + return process(x2_d)
1.8 +
1.9 +def test_file(filename):
1.10 +
1.11 + # Assignment should not be transformed.
1.12 +
1.13 + x2_d = parseFile(filename)
1.14 + return process(x2_d)
1.15 +
1.16 +def process(x2_d):
1.17
1.18 # Not even within containers, and not special names alone.
1.19
1.20 @@ -68,6 +78,12 @@
1.21 x2_new4 = x2_new2.ownerDocument.createElement("FFF")
1.22 x2_new2.appendChild(x2_new4)
1.23
1.24 + return x2_d
1.25 +
1.26 +def test_import(x2_d):
1.27 +
1.28 + x2_root = find_root(x2_d)
1.29 +
1.30 # Create a new document.
1.31
1.32 x2_d2 = createDocument("nsD", "newdoc", None)