[GRASS-SVN] r73929 - grass/trunk/lib/python/pygrass/raster/testsuite
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 12 00:08:33 PST 2019
Author: marisn
Date: 2019-01-12 00:08:33 -0800 (Sat, 12 Jan 2019)
New Revision: 73929
Modified:
grass/trunk/lib/python/pygrass/raster/testsuite/test_history.py
Log:
PyGRASS: A test case for history.command()
Modified: grass/trunk/lib/python/pygrass/raster/testsuite/test_history.py
===================================================================
--- grass/trunk/lib/python/pygrass/raster/testsuite/test_history.py 2019-01-11 23:57:17 UTC (rev 73928)
+++ grass/trunk/lib/python/pygrass/raster/testsuite/test_history.py 2019-01-12 08:08:33 UTC (rev 73929)
@@ -73,6 +73,10 @@
self.assertEqual(decode(hist.src1), "No such source 1")
self.assertEqual(decode(hist.src2), "No such source 2")
r.close()
+
+ hist1 = History("no_map")
+ hist1.command()
+ self.assertEqual(decode(hist1.line(0)), "test_history.py")
if __name__ == '__main__':
test()
More information about the grass-commit
mailing list