changeset 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 3a5dd6f98f71
children 29f6d1f5cc53
files test/test_info_data.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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))
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)