Mercurial > treepkg
diff test/test_info_data.py @ 507:c8268d40d35d
fix test after changes to cachedb.get_old_packages
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Mon, 08 Nov 2010 16:40:19 +0000 |
parents | 4980f8d5014a |
children |
line wrap: on
line diff
--- a/test/test_info_data.py Fri Nov 05 11:02:57 2010 +0000 +++ b/test/test_info_data.py Mon Nov 08 16:40:19 2010 +0000 @@ -51,17 +51,17 @@ self.assertEquals(package.arch, package2.arch) self.assertEquals(package.md5sum, package2.md5sum) - package3 = Package("/tmp/foo/foo_0.2.i386.deb", "foo", + package3 = Package("/tmp/foo/foo_0.2.i386.deb", "abc", "foo_0.2_i386.deb", "/tmp/source/foo/foo_0.2.i386.deb", "binary-i386", "987654321") - package4 = Package("/tmp/john/doe_0.3.i386.deb", "john", + package4 = Package("/tmp/john/doe_0.3.i386.deb", "abc", "doe_0.3.i386.deb", "/tmp/source/john/doe_0.3.i386.deb", "binary-i386", "5671234") db.add_package(package3) db.add_package(package4) # test get_old_packages - oldpackages = db.get_old_packages([package.filename]) + oldpackages = db.get_old_packages([package]) self.assertEquals(2, len(oldpackages)) packages = db.get_packages() self.assertEquals(3, len(packages))