浏览代码

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 年之前
父节点
当前提交
fc85e1724e
共有 1 个文件被更改,包括 4 次插入0 次删除
  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()