| | |
| | | "list_matches" , |
| | | "count_attr" , |
| | | "host_is_localhost" , |
| | | "md5_hash"] |
| | | "md5_hash" |
| | | ] |
| | | |
| | | class format_testcase: |
| | | 'Format the Test name objects' |
| | |
| | | self.file2 = file2 |
| | | self.diffFile = diffFile |
| | | |
| | | def genDiff(self): |
| | | from org.tmatesoft.svn.core.wc import * |
| | | def genDiff(self): |
| | | from org.tmatesoft.svn.core.wc import DefaultSVNDiffGenerator |
| | | from java.io import File |
| | | from java.io import FileOutputStream |
| | | |
| | |
| | | from javax.xml.transform.dom import DOMSource |
| | | tranFactory = TransformerFactory.newInstance(); |
| | | aTransformer = tranFactory.newTransformer(); |
| | | aTransformer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1") |
| | | aTransformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8") |
| | | aTransformer.setOutputProperty(OutputKeys.INDENT, "yes") |
| | | |
| | | src = DOMSource(doc); |
| | |
| | | |
| | | tranFactory = TransformerFactory.newInstance(); |
| | | aTransformer = tranFactory.newTransformer(); |
| | | aTransformer.setOutputProperty(OutputKeys.ENCODING, "ISO-8859-1") |
| | | aTransformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8") |
| | | aTransformer.setOutputProperty(OutputKeys.INDENT, "yes"); |
| | | aTransformer.transform(xmlInput, xmlOutput); |
| | | |
| | |
| | | import md5 |
| | | m = md5.new() |
| | | return m |
| | | |
| | | |