Mercurial > treepkg
comparison test/filesupport.py @ 195:e3ab8aca2b08
Make filesupport.py more PEP8 conformant. Rename method
checkFileContents to check_file_contents. Update the callers.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Thu, 31 Jul 2008 10:36:17 +0000 |
parents | e1c7cd896310 |
children |
comparison
equal
deleted
inserted
replaced
194:86360f3d5611 | 195:e3ab8aca2b08 |
---|---|
113 self.create_files(os.path.join(directory, name), contents) | 113 self.create_files(os.path.join(directory, name), contents) |
114 else: | 114 else: |
115 writefile(os.path.join(directory, name), contents, permissions) | 115 writefile(os.path.join(directory, name), contents, permissions) |
116 return directory | 116 return directory |
117 | 117 |
118 def checkFileContents(self, filename, contents): | 118 def check_file_contents(self, filename, contents): |
119 """check the contents of a file""" | 119 """check the contents of a file""" |
120 self.assertEquals(open(filename).read(), contents) | 120 self.assertEquals(open(filename).read(), contents) |