[csw-devel] SF.net SVN: gar:[13058] csw/mgar/gar/v2/lib/python/package_stats_test.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Jan 23 09:00:09 CET 2011


Revision: 13058
          http://gar.svn.sourceforge.net/gar/?rev=13058&view=rev
Author:   wahwah
Date:     2011-01-23 08:00:09 +0000 (Sun, 23 Jan 2011)

Log Message:
-----------
checkpkg: Tests should not care about bad content

Use a type assertion rather than a defined value.

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	2011-01-23 07:59:35 UTC (rev 13057)
+++ csw/mgar/gar/v2/lib/python/package_stats_test.py	2011-01-23 08:00:09 UTC (rev 13058)
@@ -56,8 +56,7 @@
       })
     mock_dirpkg.GetPkgmap().AndReturn(mock_pkgmap)
     mock_pkgmap.entries = []
-    mock_dirpkg.GetFilesContaining(
-        ('/export/medusa', '/opt/build')).AndReturn([])
+    mock_dirpkg.GetFilesContaining(mox.IsA(tuple)).AndReturn([])
     mock_dirpkg.GetFilesMetadata().AndReturn([])
     mock_srv4.GetMtime().AndReturn(datetime.datetime(2010, 12, 8, 7, 52, 54))
     pkgstats = package_stats.PackageStats(mock_srv4)


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