comparison test/test_run.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 98de92b816d4
children
comparison
equal deleted inserted replaced
194:86360f3d5611 195:e3ab8aca2b08
69 69
70 def test_run_with_logfile(self): 70 def test_run_with_logfile(self):
71 logfilename = self.temp_file_name("logfile") 71 logfilename = self.temp_file_name("logfile")
72 call([sys.executable, "-c", "print \"I'm a lumber jack and I'm OK\""], 72 call([sys.executable, "-c", "print \"I'm a lumber jack and I'm OK\""],
73 logfile=logfilename) 73 logfile=logfilename)
74 self.checkFileContents(logfilename, "I'm a lumber jack and I'm OK\n") 74 self.check_file_contents(logfilename, "I'm a lumber jack and I'm OK\n")
75 75
76 76
77 class TestCaptureOutput(unittest.TestCase): 77 class TestCaptureOutput(unittest.TestCase):
78 78
79 def test_capture_output_stdout(self): 79 def test_capture_output_stdout(self):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)