summaryrefslogtreecommitdiff
path: root/test/test_config.py
diff options
context:
space:
mode:
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']
+ })
+