[GRASS-SVN] r54670 - grass-addons/grass7/raster/r.agent/tests
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jan 16 05:15:56 PST 2013
Author: mic
Date: 2013-01-16 05:15:56 -0800 (Wed, 16 Jan 2013)
New Revision: 54670
Modified:
grass-addons/grass7/raster/r.agent/tests/test_playground.py
Log:
fix assertRaises args
Modified: grass-addons/grass7/raster/r.agent/tests/test_playground.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_playground.py 2013-01-16 13:10:12 UTC (rev 54669)
+++ grass-addons/grass7/raster/r.agent/tests/test_playground.py 2013-01-16 13:15:56 UTC (rev 54670)
@@ -2,7 +2,7 @@
import unittest2 as unittest
#import unittest
-from libagent import playground
+from libagent import playground, error
class TestOurExceptions(unittest.TestCase):
def setUp(self):
@@ -22,7 +22,7 @@
key = "foo"
self.pg.setlayer(key, layer)
self.assertIs(self.pg.layers[key], layer)
- self.assertRaises(Exception, self.pg.setlayer, (key, layer))
+ self.assertRaises(error.Error, self.pg.setlayer, *[key, layer])
layer = [0]
self.assertIsNot(self.pg.layers[key], layer)
self.pg.setlayer(key, layer, True)
More information about the grass-commit
mailing list