diff test/test_builder.py @ 178:b2fa3b0926d0

PBuilder: refactor the "pbuilder update" call into a separate method
author Bernhard Herzog <bh@intevation.de>
date Tue, 24 Jun 2008 17:59:49 +0000
parents 7bde59aa611e
children 81585486281b
line wrap: on
line diff
--- a/test/test_builder.py	Tue Jun 24 17:52:14 2008 +0000
+++ b/test/test_builder.py	Tue Jun 24 17:59:49 2008 +0000
@@ -138,6 +138,12 @@
                           % os.path.join(basedir, "pbuilderrc"),
                           captured_stderr.getvalue())
 
+    def test_update(self):
+        """Tests the PBuilder.update method."""
+        builder = PBuilder("my_pbuilderrc", self.root_command)
+        builder.update()
+        self.check_command_line(['/usr/sbin/pbuilder', 'update',
+                                 '--configfile', 'my_pbuilderrc'])
 
     def test_build(self):
         """Tests the PBuilder.build method.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)