1

Prefixing test case methods with letter 'test'

view story
linux-howto

http://www.unix.com – Hi, I have a Python unit test cases source code file which contains more than a hundred test case methods. In that, some of the test case methods already have prefix 'test' where as some of them do not have. Now, I need to add the string 'test' (case-sensitive) as a prefix to those of the methods that have this characters absent. Also, I need to change the case of the first letter of the method following 'test'. for eg: Code: def testGroupGetVersion(self): --> this Python test case method is already prefixed with the string 'test', so this has to be ignored def setCurrentGro (HowTos)