summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-06-23 23:12:13 +0200
committerMichał Górny <mgorny@gentoo.org>2011-06-23 23:12:13 +0200
commit12662825666c17d462e20d5610af926c0cea1db4 (patch)
tree6c9f556c21494e640b4d37013d270b441a82581d
parentSimplify test runner. (diff)
downloadpms-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.py4
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'):