summaryrefslogtreecommitdiff
path: root/test/test_config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-08-23 22:51:36 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-08-23 22:51:36 -0400
commitf408a8834b0be15d7ecb11e2f491106da12629a1 (patch)
treec9c1e2ac7df597033839c69b6a2dd9e0e1d3790f /test/test_config.py
parent9b1f4aa3fdca6876ec95b7fb74be8f4a02abb300 (diff)
downloadpython-coveragepy-git-f408a8834b0be15d7ecb11e2f491106da12629a1.tar.gz
Finished implementation of path aliases for combining data files. #17.
Diffstat (limited to 'test/test_config.py')
-rw-r--r--test/test_config.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_config.py b/test/test_config.py
index 3c4be9b7..13ec0f3c 100644
--- a/test/test_config.py
+++ b/test/test_config.py
@@ -140,6 +140,13 @@ class ConfigFileTest(CoverageTest):
[xml]
output=mycov.xml
+ [paths]
+ source =
+ .
+ /home/ned/src/
+
+ other = other, /home/ned/other, c:\\Ned\\etc
+
""")
cov = coverage.coverage()
@@ -168,3 +175,9 @@ class ConfigFileTest(CoverageTest):
self.assertEqual(cov.config.html_dir, r"c:\tricky\dir.somewhere")
self.assertEqual(cov.config.xml_output, "mycov.xml")
+
+ self.assertEqual(cov.config.paths, {
+ 'source': ['.', '/home/ned/src/'],
+ 'other': ['other', '/home/ned/other', 'c:\\Ned\\etc']
+ })
+