diff options
author | Michał Górny <mgorny@gentoo.org> | 2011-06-23 23:12:13 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2011-06-23 23:12:13 +0200 |
commit | 12662825666c17d462e20d5610af926c0cea1db4 (patch) | |
tree | 6c9f556c21494e640b4d37013d270b441a82581d | |
parent | Simplify test runner. (diff) | |
download | pms-test-suite-12662825666c17d462e20d5610af926c0cea1db4.tar.gz pms-test-suite-12662825666c17d462e20d5610af926c0cea1db4.tar.bz2 pms-test-suite-12662825666c17d462e20d5610af926c0cea1db4.zip |
Fix adding a hyphen between two capital letters.
-rw-r--r-- | PMSTestSuite/library/case.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/PMSTestSuite/library/case.py b/PMSTestSuite/library/case.py index 8d222df..9a0b37a 100644 --- a/PMSTestSuite/library/case.py +++ b/PMSTestSuite/library/case.py @@ -23,7 +23,7 @@ inherit %s ''' -pn_re = re.compile('(.)([A-Z])') +pn_re = re.compile('([^A-Z])([A-Z])') def cleanup_test_case_name(classname): """ @@ -37,6 +37,8 @@ def cleanup_test_case_name(classname): 'test-zor' >>> cleanup_test_case_name('veryRandomCamelCaseTest') 'very-random-camel-case' + >>> cleanup_test_case_name('RDependTest') + 'rdepend' """ if classname.endswith('Test'): |