[csw-devel] SF.net SVN: gar:[19793] csw/mgar/gar/v2/lib/python/system_pkgmap_test.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sat Dec 1 01:42:17 CET 2012
Revision: 19793
http://gar.svn.sourceforge.net/gar/?rev=19793&view=rev
Author: wahwah
Date: 2012-12-01 00:42:16 +0000 (Sat, 01 Dec 2012)
Log Message:
-----------
system_pkgmap_test: Fix for a unit test
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/system_pkgmap_test.py
Modified: csw/mgar/gar/v2/lib/python/system_pkgmap_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/system_pkgmap_test.py 2012-12-01 00:41:59 UTC (rev 19792)
+++ csw/mgar/gar/v2/lib/python/system_pkgmap_test.py 2012-12-01 00:42:16 UTC (rev 19793)
@@ -1,6 +1,6 @@
#!/usr/bin/env python2.6
-import unittest
+import unittest2 as unittest
import system_pkgmap
import test_base
import models
@@ -45,6 +45,10 @@
class IndexerUnitTest(unittest.TestCase):
+ def setUp(self):
+ super(IndexerUnitTest, self).setUp()
+ self.maxDiff = None
+
def test_ParseSrv4PkginfoLine(self):
spi = system_pkgmap.Indexer()
expected = ('SUNWwpau', 'Wireless WPA Supplicant, (Usr)')
@@ -274,8 +278,8 @@
'path': '/bin', 'pkgnames': ['SUNWsystem-core-os'], 'target': './usr/bin', 'type': 's'},
{'group': 'sys', 'line': 'dev\tdir\tsystem/core-os\t\t0755\troot\tsys', 'mode': '0755', 'owner': 'root',
'path': '/dev', 'pkgnames': ['SUNWsystem-core-os'], 'target': None, 'type': 'd'}],
- 'pkginfo': {'SUNWbin': u'link system/core-os ./usr/bin',
- 'SUNWdev': u'dir system/core-os 0755 root sys',
+ 'pkginfo': {'SUNWdeveloper-solarisstudio-122-c': u'C++ Compilers',
+ 'SUNWdeveloper-versioning-sccs': u'Source Code Control System',
'SUNWpcan': u'Cisco-Aironet 802.11b driver',
'SUNWwpau': u'Wireless WPA Supplicant, (Usr)'}
}
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