diff test/test_builder.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 2622bf5ed5bd
children cbcd8f549ff7
line wrap: on
line diff
--- a/test/test_builder.py	Thu Jul 31 10:17:56 2008 +0000
+++ b/test/test_builder.py	Thu Jul 31 10:36:17 2008 +0000
@@ -38,7 +38,7 @@
                              self.command_line_file]
 
     def check_command_line(self, args):
-        self.checkFileContents(self.command_line_file, repr(args))
+        self.check_file_contents(self.command_line_file, repr(args))
 
 
 class TestPBuilder(PBuilderTests):
@@ -85,11 +85,11 @@
             "OTHERMIRROR=\"deb file://%(basedir)s/extra-pkg ./\"\n"
             "BINDMOUNTS=\"%(basedir)s/extra-pkg\"\n"
             "PKGNAME_LOGFILE=yes\n" % locals())
-        self.checkFileContents(pbuilderrc, pbuilderrc_contents)
+        self.check_file_contents(pbuilderrc, pbuilderrc_contents)
 
         # The Packages file is empty for now.
-        self.checkFileContents(os.path.join(basedir, "extra-pkg", "Packages"),
-                               "")
+        self.check_file_contents(os.path.join(basedir, "extra-pkg", "Packages"),
+                                 "")
         # check the text written to stdout.  This test is a little too
         # strict because it checks the exact output.
         self.assertEquals(captured_stdout.getvalue(),
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)