1 |
2003-06-19 Bernhard Herzog <[email protected]> |
2003-06-19 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Add XML validation to some of the tests. Validation will only be |
4 |
|
done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html). |
5 |
|
To make the DTD available to the test cases it's moved into |
6 |
|
Resources/XML |
7 |
|
|
8 |
|
* Resources/XML/thuban.dtd: New. This is now the real Thuban DTD |
9 |
|
for versions up to and including 0.2. Two slight changes: added an |
10 |
|
encoding specification and fixed the comment which refered to |
11 |
|
GRASS, not Thuban |
12 |
|
|
13 |
|
* test/xmlsupport.py: New support module for tests involving XML. |
14 |
|
Currently there's a mix-in class for XML validation. |
15 |
|
|
16 |
|
* test/test_xmlsupport.py: New. Tests for the xmlsupport module |
17 |
|
|
18 |
|
* test/test_save.py (SaveSessionTest): Derive from ValidationTest |
19 |
|
so that we can validate the |
20 |
|
(SaveSessionTest.testEmptySession) |
21 |
|
(SaveSessionTest.testSingleLayer) |
22 |
|
(SaveSessionTest.testSingleLayer) |
23 |
|
(SaveSessionTest.testLayerProjection) |
24 |
|
(SaveSessionTest.testRasterLayer) |
25 |
|
(SaveSessionTest.testClassifiedLayer): Validate the generated XML |
26 |
|
|
27 |
|
* test/runtests.py (main): Call print_additional_summary instead |
28 |
|
of print_garbage_information |
29 |
|
|
30 |
|
* test/support.py (resource_dir): New function to return the |
31 |
|
"Resource" subdirectory |
32 |
|
(print_additional_summary): New function to combine several |
33 |
|
summary functions |
34 |
|
(run_tests): Use print_additional_summary instead of calling |
35 |
|
print_garbage_information directly |
36 |
|
|
37 |
|
2003-06-19 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
* Doc/thuban.dtd (classification): Correct the content model of |
* Doc/thuban.dtd (classification): Correct the content model of |
40 |
the classification element. |
the classification element. |
41 |
(projection): Add the "name" attribute |
(projection): Add the "name" attribute |