[csw-devel] SF.net SVN: gar:[11896] csw/mgar/gar/v2/lib/python/package_stats_test.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Dec 13 01:46:22 CET 2010
Revision: 11896
http://gar.svn.sourceforge.net/gar/?rev=11896&view=rev
Author: wahwah
Date: 2010-12-13 00:46:22 +0000 (Mon, 13 Dec 2010)
Log Message:
-----------
checkpkg: Override insertion test
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/package_stats_test.py
Modified: csw/mgar/gar/v2/lib/python/package_stats_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_stats_test.py 2010-12-13 00:45:40 UTC (rev 11895)
+++ csw/mgar/gar/v2/lib/python/package_stats_test.py 2010-12-13 00:46:22 UTC (rev 11896)
@@ -223,6 +223,19 @@
new_data = new_pkgstats.GetAllStats()
self.assertEqual(md5_sum, new_data["basic_stats"]["md5_sum"])
+ def testImportOverrides(self):
+ md5_sum = tree_stats[0]["basic_stats"]["md5_sum"]
+ self.assertEqual(u'1e43fa1c7e637b25d9356ad516ae0403', md5_sum)
+ new_stats = copy.deepcopy(tree_stats[0])
+ new_stats["overrides"].append(
+ {'pkgname': 'CSWtree',
+ 'tag_info': None,
+ 'tag_name': 'bad-rpath-entry'})
+ self.TestPackageStats.SaveStats(new_stats)
+ o = m.CheckpkgOverride.select().getOne()
+ self.assertEquals("CSWtree", o.pkgname)
+ self.assertEquals("bad-rpath-entry", o.tag_name)
+
def testImportPkg(self):
"""Registers the package in the database."""
package_stats.PackageStats.ImportPkg(neon_stats[0])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list