[GRASS-SVN] r55321 - in grass-addons/grass7/raster/r.agent: libagent tests

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 11 12:54:03 PDT 2013


Author: mic
Date: 2013-03-11 12:54:03 -0700 (Mon, 11 Mar 2013)
New Revision: 55321

Modified:
   grass-addons/grass7/raster/r.agent/libagent/grassland.py
   grass-addons/grass7/raster/r.agent/tests/test_grassland.py
Log:
rename camel

Modified: grass-addons/grass7/raster/r.agent/libagent/grassland.py
===================================================================
--- grass-addons/grass7/raster/r.agent/libagent/grassland.py	2013-03-11 16:41:44 UTC (rev 55320)
+++ grass-addons/grass7/raster/r.agent/libagent/grassland.py	2013-03-11 19:54:03 UTC (rev 55321)
@@ -13,7 +13,7 @@
 import grass.script as grass
 from grass.script import array as garray
 
-class GrassLand(playground.Playground):
+class Grassland(playground.Playground):
     """A GrassLand is a Playground and the interface to GRASS."""
 
     def __init__(self):
@@ -74,3 +74,7 @@
             self.layers[layername].write(self.grassmapnames[layername],
                                                         overwrite=force)
 
+    def parsevectorlayer(self, layername, grassmapname=False, force=False):
+#TODO
+        return []
+

Modified: grass-addons/grass7/raster/r.agent/tests/test_grassland.py
===================================================================
--- grass-addons/grass7/raster/r.agent/tests/test_grassland.py	2013-03-11 16:41:44 UTC (rev 55320)
+++ grass-addons/grass7/raster/r.agent/tests/test_grassland.py	2013-03-11 19:54:03 UTC (rev 55321)
@@ -6,10 +6,10 @@
 import grass.script as grass
 from grass.script import array as garray
 
-class TestGrassLand(unittest.TestCase):
+class TestGrassland(unittest.TestCase):
     def setUp(self):
         self.layername = "r.agent.testmap"
-        self.pg = grassland.GrassLand()
+        self.pg = grassland.Grassland()
 
     def test_getregion(self):
         self.assertIsNotNone(self.pg.getregion())
@@ -87,6 +87,9 @@
     def test_writelayer(self):
         pass
 
+    def test_parsegrasslayer(self):
+        pass
+
 #    def tearDown(self):
 
 



More information about the grass-commit mailing list