Mercurial > treepkg
comparison 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 |
comparison
equal
deleted
inserted
replaced
177:df7498d0bd9d | 178:b2fa3b0926d0 |
---|---|
136 sys.stderr = old_stderr | 136 sys.stderr = old_stderr |
137 self.assertEquals("pbuilderrc %r already exists.\n" | 137 self.assertEquals("pbuilderrc %r already exists.\n" |
138 % os.path.join(basedir, "pbuilderrc"), | 138 % os.path.join(basedir, "pbuilderrc"), |
139 captured_stderr.getvalue()) | 139 captured_stderr.getvalue()) |
140 | 140 |
141 def test_update(self): | |
142 """Tests the PBuilder.update method.""" | |
143 builder = PBuilder("my_pbuilderrc", self.root_command) | |
144 builder.update() | |
145 self.check_command_line(['/usr/sbin/pbuilder', 'update', | |
146 '--configfile', 'my_pbuilderrc']) | |
141 | 147 |
142 def test_build(self): | 148 def test_build(self): |
143 """Tests the PBuilder.build method. | 149 """Tests the PBuilder.build method. |
144 The test checks whether the build method creates the binary_dir | 150 The test checks whether the build method creates the binary_dir |
145 and then checks the arguments with which the root command is | 151 and then checks the arguments with which the root command is |