[GRASS-SVN] r64883 - grass/trunk/temporal/t.rast.what/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 18 12:55:31 PDT 2015
Author: wenzeslaus
Date: 2015-03-18 12:55:31 -0700 (Wed, 18 Mar 2015)
New Revision: 64883
Modified:
grass/trunk/temporal/t.rast.what/testsuite/test_what.py
Log:
t.rast.what: update test to use MD5 for text files (implemented in r64734), remove unused imports from test
Modified: grass/trunk/temporal/t.rast.what/testsuite/test_what.py
===================================================================
--- grass/trunk/temporal/t.rast.what/testsuite/test_what.py 2015-03-17 09:10:12 UTC (rev 64882)
+++ grass/trunk/temporal/t.rast.what/testsuite/test_what.py 2015-03-18 19:55:31 UTC (rev 64883)
@@ -8,8 +8,6 @@
@author Soeren Gebbert
"""
-import grass.pygrass.modules as pymod
-import subprocess
from grass.gunittest.case import TestCase
from grass.gunittest.gmodules import SimpleModule
@@ -50,7 +48,7 @@
layout="row",
nprocs=1, overwrite=True, verbose=True)
- self.assertFileMd5("out_row.txt", "55209718566d70e1427bd1fecf844d53")
+ self.assertFileMd5("out_row.txt", "55209718566d70e1427bd1fecf844d53", text=True)
def test_row_output_coords(self):
@@ -59,7 +57,7 @@
layout="row",
nprocs=1, overwrite=True, verbose=True)
- self.assertFileMd5("out_row_coords.txt", "cd917ac4848786f1b944512eed1da5bc")
+ self.assertFileMd5("out_row_coords.txt", "cd917ac4848786f1b944512eed1da5bc", text=True)
def test_col_output(self):
self.assertModule("t.rast.what", strds="A", output="out_col.txt",
@@ -67,7 +65,7 @@
layout="col",
nprocs=1, overwrite=True, verbose=True)
- self.assertFileMd5("out_col.txt", "8720cc237b46ddb18f11440469d0e13f")
+ self.assertFileMd5("out_col.txt", "8720cc237b46ddb18f11440469d0e13f", text=True)
def test_col_output_coords(self):
self.assertModule("t.rast.what", strds="A", output="out_col_coords.txt",
@@ -75,7 +73,7 @@
layout="col",
nprocs=1, overwrite=True, verbose=True)
- self.assertFileMd5("out_col_coords.txt", "ac44ebc5aa040d4ce2a5787e95f208ec")
+ self.assertFileMd5("out_col_coords.txt", "ac44ebc5aa040d4ce2a5787e95f208ec", text=True)
def test_timerow_output(self):
self.assertModule("t.rast.what", strds="A", output="out_timerow.txt",
@@ -83,7 +81,7 @@
layout="timerow",
nprocs=1, overwrite=True, verbose=True)
- self.assertFileMd5("out_timerow.txt", "129fe0b63019e505232efa20ad42c03a")
+ self.assertFileMd5("out_timerow.txt", "129fe0b63019e505232efa20ad42c03a", text=True)
def test_timerow_output_coords(self):
self.assertModule("t.rast.what", strds="A", output="out_timerow_coords.txt",
@@ -91,7 +89,7 @@
layout="timerow",
nprocs=1, overwrite=True, verbose=True)
- self.assertFileMd5("out_timerow_coords.txt", "ca4ee0e7e4aaca170d6034e0d57d292d")
+ self.assertFileMd5("out_timerow_coords.txt", "ca4ee0e7e4aaca170d6034e0d57d292d", text=True)
def test_row_stdout_where_parallel(self):
@@ -142,7 +140,7 @@
where="start_time > '2001-03-01'",
nprocs=4, overwrite=True, verbose=True)
- self.assertFileMd5("out_where.txt", "af731bec01fedc262f4ac162fe420707")
+ self.assertFileMd5("out_where.txt", "af731bec01fedc262f4ac162fe420707", text=True)
def test_empty_strds(self):
self.assertModuleFail("t.rast.what", strds="A", output="out_error.txt",
More information about the grass-commit
mailing list