[Treepkg-commits] r470 - trunk/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Nov 8 17:40:19 CET 2010
Author: bricks
Date: 2010-11-08 17:40:19 +0100 (Mon, 08 Nov 2010)
New Revision: 470
Modified:
trunk/test/test_info_data.py
Log:
fix test after changes to cachedb.get_old_packages
Modified: trunk/test/test_info_data.py
===================================================================
--- trunk/test/test_info_data.py 2010-11-05 11:02:57 UTC (rev 469)
+++ trunk/test/test_info_data.py 2010-11-08 16:40:19 UTC (rev 470)
@@ -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))
More information about the Treepkg-commits
mailing list