[GRASS-SVN] r72684 - grass/trunk/raster/r.to.vect/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 4 20:27:58 PDT 2018
Author: annakrat
Date: 2018-05-04 20:27:58 -0700 (Fri, 04 May 2018)
New Revision: 72684
Modified:
grass/trunk/raster/r.to.vect/testsuite/test_r_to_vect.py
Log:
r.to.vect: fix failed test due to inconsistent use of tabs and spaces
Modified: grass/trunk/raster/r.to.vect/testsuite/test_r_to_vect.py
===================================================================
--- grass/trunk/raster/r.to.vect/testsuite/test_r_to_vect.py 2018-05-05 03:16:50 UTC (rev 72683)
+++ grass/trunk/raster/r.to.vect/testsuite/test_r_to_vect.py 2018-05-05 03:27:58 UTC (rev 72684)
@@ -1,28 +1,28 @@
"""
Name: r.to.vect test
Purpose: Tests r.to.vect and its flags/options.
-
+
Author: Sunveer Singh, Google Code-in 2017
Copyright: (C) 2017 by Sunveer Singh and the GRASS Development Team
Licence: This program is free software under the GNU General Public
- License (>=v2). Read the file COPYING that comes with GRASS
- for details.
+ License (>=v2). Read the file COPYING that comes with GRASS
+ for details.
"""
from grass.gunittest.case import TestCase
from grass.gunittest.main import test
-from grass.gunittest.gmodules import SimpleModule
+
class Testrr(TestCase):
- input='lakes'
- output='testrtovect'
- point='point'
- area="area"
+ input = 'lakes'
+ output = 'testrtovect'
+ point = 'point'
+ area = "area"
@classmethod
def setUpClass(cls):
cls.use_temp_region()
cls.runModule('g.region', raster=cls.input)
-
+
@classmethod
def tearDownClass(cls):
cls.del_temp_region()
@@ -32,28 +32,29 @@
def test_flags(self):
"""Testing flag s"""
- self.assertModule('r.to.vect', input=self.input, output=self.output, type=self.point, flags='s')
+ self.assertModule('r.to.vect', input=self.input, output=self.output, type=self.point, flags='s')
topology = dict(points=36011, lines=0, areas=0)
- self.assertVectorFitsTopoInfo(self.output, topology)
+ self.assertVectorFitsTopoInfo(self.output, topology)
def test_flagz(self):
"""Testing flag z"""
- self.assertModule('r.to.vect', input=self.input, output=self.output, type=self.point, flags='z')
+ self.assertModule('r.to.vect', input=self.input, output=self.output, type=self.point, flags='z')
topology = dict(points=36011, lines=0, areas=0)
- self.assertVectorFitsTopoInfo(self.output, topology)
-
+ self.assertVectorFitsTopoInfo(self.output, topology)
+
def test_flagb(self):
"""Testing flag b"""
- self.assertModule('r.to.vect', input=self.input, output=self.output, type=self.area, flags='b')
+ self.assertModule('r.to.vect', input=self.input, output=self.output, type=self.area, flags='b')
topology = dict(points=0, lines=0, areas=0)
- self.assertVectorFitsTopoInfo(self.output, topology)
-
+ self.assertVectorFitsTopoInfo(self.output, topology)
+
def test_flagt(self):
"""Testing flag t"""
- self.assertModule('r.to.vect', input=self.input, output=self.output, type=self.area, flags='t')
+ self.assertModule('r.to.vect', input=self.input, output=self.output, type=self.area, flags='t')
topology = dict(points=0, lines=0, areas=33)
- self.assertVectorFitsTopoInfo(self.output, topology)
+ self.assertVectorFitsTopoInfo(self.output, topology)
+
if __name__ == '__main__':
from grass.gunittest.main import test
test()
More information about the grass-commit
mailing list