comparison test/test_util.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 bfd1c6a155fa
comparison
equal deleted inserted replaced
194:86360f3d5611 195:e3ab8aca2b08
19 19
20 def runtest(self, orig_contents, expected_contents, pattern, replacement): 20 def runtest(self, orig_contents, expected_contents, pattern, replacement):
21 filename = self.create_temp_file("orig", orig_contents) 21 filename = self.create_temp_file("orig", orig_contents)
22 changed = replace_in_file(filename, pattern, replacement) 22 changed = replace_in_file(filename, pattern, replacement)
23 self.assertEquals(changed, orig_contents != expected_contents) 23 self.assertEquals(changed, orig_contents != expected_contents)
24 self.checkFileContents(filename, expected_contents) 24 self.check_file_contents(filename, expected_contents)
25 25
26 def test_version_replacement(self): 26 def test_version_replacement(self):
27 template = ("project foo version 1.0-svn%(rev)d" 27 template = ("project foo version 1.0-svn%(rev)d"
28 "Some filler" 28 "Some filler"
29 "text that sometimes" 29 "text that sometimes"
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)