[csw-devel] SF.net SVN: gar:[8742] csw/mgar/gar/v2/lib/python/checkpkg_test.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Mon Feb 22 17:56:58 CET 2010
Revision: 8742
http://gar.svn.sourceforge.net/gar/?rev=8742&view=rev
Author: wahwah
Date: 2010-02-22 16:56:58 +0000 (Mon, 22 Feb 2010)
Log Message:
-----------
mGAR v2: checkpkg, Added a unit test for _ParseNmSymLine
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/checkpkg_test.py
Modified: csw/mgar/gar/v2/lib/python/checkpkg_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg_test.py 2010-02-22 16:42:27 UTC (rev 8741)
+++ csw/mgar/gar/v2/lib/python/checkpkg_test.py 2010-02-22 16:56:58 UTC (rev 8742)
@@ -727,5 +727,18 @@
self.assertEqual(expected, spkgmap._ParsePkginfoLine(line))
+class PackageStatsUnitTest(unittest.TestCase):
+
+ def test_ParseNmSymLine(self):
+ line = '0000097616 T aliases_lookup'
+ expected = {
+ 'address': '0000097616',
+ 'type': 'T',
+ 'name': 'aliases_lookup',
+ }
+ pkgstats = checkpkg.PackageStats(None)
+ self.assertEqual(expected, pkgstats._ParseNmSymLine(line))
+
+
if __name__ == '__main__':
unittest.main()
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