def testPunctuationToUnderscores(self): self.assertEqual( _transform_filename(self.text,["pu",]), "Folder/A Test File_.name" )
def testCompoundStatement(self): self.assertEqual( _transform_filename(self.text,["jc", "us", "rp"]), "folder/aTestFile.name" )
def testRemoveSpaces(self): self.assertEqual( _transform_filename(self.text,["rs",]), "Folder/ATestFile!.name" )
def testRemovePunctuation(self): self.assertEqual( _transform_filename(self.text,["rp",]), "Folder/A Test File.name" )
def testSpacesToUnderscores(self): self.assertEqual( _transform_filename(self.text,["us",]), "Folder/A_Test_File!.name" )
def testJavaCase(self): self.assertEqual( _transform_filename(self.text,["jc",]), "folder/aTestFile!.name" )
def testCamelCase(self): self.assertEqual( _transform_filename(self.text,["cc",]), "Folder/ATestFile!.name" )
def testUppercase(self): self.assertEqual( _transform_filename(self.text,["uc",]), "FOLDER/A TEST FILE!.NAME" )
def testLowercase(self): self.assertEqual( _transform_filename(self.text,["lc",]), "folder/a test file!.name" )