Browse Source

PyGRASS: A test case for history.command()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73929 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 6 years ago
parent
commit
fc85e1724e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/python/pygrass/raster/testsuite/test_history.py

+ 4 - 0
lib/python/pygrass/raster/testsuite/test_history.py

@@ -73,6 +73,10 @@ class RasterHistoryTestCate(TestCase):
         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()