Mercurial > treepkg
comparison test/test_listpackages.py @ 253:7d932fac1055
Add --newest=N option to listpackages to get more than one newest
revision. Add corresponding tests.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 14 Apr 2009 12:45:12 +0000 |
parents | 2e0b373414b8 |
children | faeeac2c4c71 |
comparison
equal
deleted
inserted
replaced
252:2e0b373414b8 | 253:7d932fac1055 |
---|---|
223 kdepim/pkg/704195-31/binary/kdepim_1.0.1.704195-1_i386.deb | 223 kdepim/pkg/704195-31/binary/kdepim_1.0.1.704195-1_i386.deb |
224 kdepim/pkg/704195-31/binary/kleopatra_1.0.1.704195-1_i386.deb | 224 kdepim/pkg/704195-31/binary/kleopatra_1.0.1.704195-1_i386.deb |
225 kdepimlibs/pkg/803692-4322/binary/kdepimlibs_1.0.1.803692-1_i386.deb""") | 225 kdepimlibs/pkg/803692-4322/binary/kdepimlibs_1.0.1.803692-1_i386.deb""") |
226 | 226 |
227 | 227 |
228 class TestListPackagesNNewest(ListPackagesTest): | |
229 | |
230 track_files = [package_track_files("kdepim", "1.0.1", | |
231 ["kdepim", "kleopatra"], | |
232 [(701865, 28), | |
233 (700345, 28), | |
234 (702432, 28), | |
235 (704195, 31, "error")]), | |
236 package_track_files("kdepimlibs", "1.0.1", | |
237 ["kdepimlibs"], | |
238 [(700298, 34), | |
239 (700345, 34), | |
240 (701866, 34, "error"), | |
241 (701866, 35), | |
242 (702436, 35)]), | |
243 ] | |
244 | |
245 def test_listpackages_source(self): | |
246 self.check_cmd(["--source", "--newest=2"], | |
247 """\ | |
248 kdepim/pkg/700345-28/src/kdepim_1.0.1.700345-1.diff.gz | |
249 kdepim/pkg/700345-28/src/kdepim_1.0.1.700345-1.dsc | |
250 kdepim/pkg/700345-28/src/kdepim_1.0.1.700345.orig.tar.gz | |
251 kdepim/pkg/702432-28/src/kdepim_1.0.1.702432-1.diff.gz | |
252 kdepim/pkg/702432-28/src/kdepim_1.0.1.702432-1.dsc | |
253 kdepim/pkg/702432-28/src/kdepim_1.0.1.702432.orig.tar.gz | |
254 kdepimlibs/pkg/701866-35/src/kdepimlibs_1.0.1.701866-1.diff.gz | |
255 kdepimlibs/pkg/701866-35/src/kdepimlibs_1.0.1.701866-1.dsc | |
256 kdepimlibs/pkg/701866-35/src/kdepimlibs_1.0.1.701866.orig.tar.gz | |
257 kdepimlibs/pkg/702436-35/src/kdepimlibs_1.0.1.702436-1.diff.gz | |
258 kdepimlibs/pkg/702436-35/src/kdepimlibs_1.0.1.702436-1.dsc | |
259 kdepimlibs/pkg/702436-35/src/kdepimlibs_1.0.1.702436.orig.tar.gz""") | |
260 | |
261 def test_listpackages_binary(self): | |
262 self.check_cmd(["--binary", "--newest=3"], | |
263 """\ | |
264 kdepim/pkg/700345-28/binary/kdepim_1.0.1.700345-1_i386.deb | |
265 kdepim/pkg/700345-28/binary/kleopatra_1.0.1.700345-1_i386.deb | |
266 kdepim/pkg/701865-28/binary/kdepim_1.0.1.701865-1_i386.deb | |
267 kdepim/pkg/701865-28/binary/kleopatra_1.0.1.701865-1_i386.deb | |
268 kdepim/pkg/702432-28/binary/kdepim_1.0.1.702432-1_i386.deb | |
269 kdepim/pkg/702432-28/binary/kleopatra_1.0.1.702432-1_i386.deb | |
270 kdepimlibs/pkg/700345-34/binary/kdepimlibs_1.0.1.700345-1_i386.deb | |
271 kdepimlibs/pkg/701866-35/binary/kdepimlibs_1.0.1.701866-1_i386.deb | |
272 kdepimlibs/pkg/702436-35/binary/kdepimlibs_1.0.1.702436-1_i386.deb""") | |
273 | |
274 | |
228 class TestListPackagesTrackRevision(ListPackagesTest): | 275 class TestListPackagesTrackRevision(ListPackagesTest): |
229 | 276 |
230 track_files = [package_track_files("kdepim", "1.0.1", | 277 track_files = [package_track_files("kdepim", "1.0.1", |
231 ["kdepim", "kleopatra"], | 278 ["kdepim", "kleopatra"], |
232 [(704195, 31), (702432, 47)]), | 279 [(704195, 31), (702432, 47)]), |