diff --git a/tests/python_tests/load_map_test.py b/tests/python_tests/load_map_test.py index d5451bc51..283aa8aa3 100644 --- a/tests/python_tests/load_map_test.py +++ b/tests/python_tests/load_map_test.py @@ -40,10 +40,10 @@ def test_broken_files(): def test_can_parse_xml_with_deprecated_properties(): default_logging_severity = mapnik.logger.get_severity() mapnik.logger.set_severity(mapnik.severity_type.None) - broken_files = glob.glob("../data/deprecated_maps/*.xml") + files_with_deprecated_props = glob.glob("../data/deprecated_maps/*.xml") failures = []; - for filename in broken_files: + for filename in files_with_deprecated_props: try: m = mapnik.Map(512, 512) strict = True diff --git a/tests/python_tests/save_map_test.py b/tests/python_tests/save_map_test.py index 4df244d98..37cb9eb6f 100644 --- a/tests/python_tests/save_map_test.py +++ b/tests/python_tests/save_map_test.py @@ -64,6 +64,13 @@ def test_compare_map(): for m in glob.glob("../visual_tests/styles/*.xml"): compare_map(m) +# TODO - enforce that original xml does not equal first saved xml +def test_compare_map_deprecations(): + dep = glob.glob("../data/deprecated_maps/*.xml") + dep = [os.path.normpath(p) for p in dep] + for m in dep: + compare_map(m) + if __name__ == "__main__": setup() exit(run_all(eval(x) for x in dir() if x.startswith("test_")))