示例#1
0
 def testPunctuationToUnderscores(self):
     self.assertEqual(
             _transform_filename(self.text,["pu",]),
             "Folder/A Test File_.name"
             )
示例#2
0
 def testCompoundStatement(self):
     self.assertEqual(
             _transform_filename(self.text,["jc", "us", "rp"]),
             "folder/aTestFile.name"
             )
示例#3
0
 def testRemoveSpaces(self):
     self.assertEqual(
             _transform_filename(self.text,["rs",]),
             "Folder/ATestFile!.name"
             )
示例#4
0
 def testRemovePunctuation(self):
     self.assertEqual(
             _transform_filename(self.text,["rp",]),
             "Folder/A Test File.name"
             )
示例#5
0
 def testSpacesToUnderscores(self):
     self.assertEqual(
             _transform_filename(self.text,["us",]),
             "Folder/A_Test_File!.name"
             )
示例#6
0
 def testJavaCase(self):
     self.assertEqual(
             _transform_filename(self.text,["jc",]),
             "folder/aTestFile!.name"
             )
示例#7
0
 def testCamelCase(self):
     self.assertEqual(
             _transform_filename(self.text,["cc",]),
             "Folder/ATestFile!.name"
             )
示例#8
0
 def testUppercase(self):
     self.assertEqual(
             _transform_filename(self.text,["uc",]),
             "FOLDER/A TEST FILE!.NAME"
             )
示例#9
0
 def testLowercase(self):
     self.assertEqual(
             _transform_filename(self.text,["lc",]),
             "folder/a test file!.name"
             )