summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-04-27 09:49:23 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-04-27 09:49:23 -0400
commitb1b8707c81edf0012e07089bc876b534d01e3ee7 (patch)
treec0f0f433ffcba669175d536182fb68ac97c8e380 /test
parent6c4465b4b6b56dcae5c658b1dee9376441876d5a (diff)
parentc13d9b0f1c7c101129def4a7588a519a8a12e022 (diff)
downloadpython-coveragepy-b1b8707c81edf0012e07089bc876b534d01e3ee7.tar.gz
Merge bug_123 work into default.
Diffstat (limited to 'test')
-rw-r--r--test/test_api.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/test_api.py b/test/test_api.py
index 31d8988..0a0aabf 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -388,6 +388,15 @@ class SourceOmitIncludeTest(CoverageTest):
"p1b.py p1c.py p2b.py otherb.py osb.py"
)
+ def test_include_as_string(self):
+ lines = self.coverage_usepkgs_summary(include="*a.py")
+ self.filenames_in_summary(lines,
+ "p1a.py p2a.py othera.py osa.py"
+ )
+ self.filenames_not_in_summary(lines,
+ "p1b.py p1c.py p2b.py otherb.py osb.py"
+ )
+
def test_omit(self):
lines = self.coverage_usepkgs_summary(omit=["*/p1a.py"])
self.filenames_in_summary(lines,
@@ -406,6 +415,15 @@ class SourceOmitIncludeTest(CoverageTest):
"p1a.py p1c.py p2a.py othera.py osa.py"
)
+ def test_omit_as_string(self):
+ lines = self.coverage_usepkgs_summary(omit="*a.py")
+ self.filenames_in_summary(lines,
+ "p1b.py p2b.py otherb.py osb.py"
+ )
+ self.filenames_not_in_summary(lines,
+ "p1a.py p1c.py p2a.py othera.py osa.py"
+ )
+
def test_omit_and_include(self):
lines = self.coverage_usepkgs_summary(
include=["*/p1*"], omit=["*/p1a.py"]