diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-10-12 15:24:00 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-10-12 15:24:00 -0400 |
commit | f1df880e7582638cb5ddb3227e53f8206052143d (patch) | |
tree | 344ce20729102edf6c0194779ec4e5e45fe5fba9 /tests/test_files.py | |
parent | 88d7fd9da9e6c192c3f2042ce127ae7ef92de134 (diff) | |
download | python-coveragepy-git-f1df880e7582638cb5ddb3227e53f8206052143d.tar.gz |
Explicitly test multiple wildcards in path aliases
Diffstat (limited to 'tests/test_files.py')
-rw-r--r-- | tests/test_files.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_files.py b/tests/test_files.py index eecdfa7b..2d22730e 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -225,6 +225,15 @@ class PathAliasesTest(CoverageTest): aliases.add(r'c:\ned\src', r'.\mysrc') self.assert_mapped(aliases, r'/home/ned/foo/src/sub/a.py', r'.\mysrc\sub\a.py') + def test_multiple_wildcard(self): + aliases = PathAliases() + aliases.add('/home/jenkins/*/a/*/b/*/django', './django') + self.assert_mapped( + aliases, + '/home/jenkins/xx/a/yy/b/zz/django/foo/bar.py', + './django/foo/bar.py' + ) + def test_leading_wildcard(self): aliases = PathAliases() aliases.add('*/d1', './mysrc1') |