[Liblas-commits] r1059 - trunk/python/tests
liblas-commits at liblas.org
liblas-commits at liblas.org
Fri Feb 20 17:36:57 EST 2009
Author: hobu
Date: Fri Feb 20 17:36:57 2009
New Revision: 1059
URL: http://liblas.org/changeset/1059
Log:
update python tests to reflect current oprations
Modified:
trunk/python/tests/Header.txt
trunk/python/tests/VLR.txt
Modified: trunk/python/tests/Header.txt
==============================================================================
--- trunk/python/tests/Header.txt (original)
+++ trunk/python/tests/Header.txt Fri Feb 20 17:36:57 2009
@@ -28,7 +28,9 @@
>>> now = datetime.datetime.now() - td
>>> today = datetime.datetime(now.year, now.month,now.day)
- >>> x = h.date - td
+# >>> x = h.date - td
+
+ >>> x = h.date
>>> d = datetime.datetime(x.year, x.month, x.day)
>>> d == today
True
@@ -96,4 +98,4 @@
>>> s = h.srs
>>> s.proj4
- '+to_meter=1.0000000000'
\ No newline at end of file
+ ''
\ No newline at end of file
Modified: trunk/python/tests/VLR.txt
==============================================================================
--- trunk/python/tests/VLR.txt (original)
+++ trunk/python/tests/VLR.txt Fri Feb 20 17:36:57 2009
@@ -63,10 +63,18 @@
>>> h = f.header
>>> h.records_count
3L
- >>> if not liblas.HAVE_GDAL:
- ... h.proj4
- '+proj=utm +zone=17 +ellps=WGS84 +units=m '
+ >>> def test_srs():
+ ... if not liblas.HAVE_GDAL:
+ ... return h.proj4 == '+proj=utm +zone=17 +ellps=WGS84 +units=m '
+ ... if liblas.HAVE_GDAL:
+ ... return h.proj4 == '+proj=utm +zone=17 +ellps=WGS84 +datum=WGS84 +units=m +no_defs '
+ ... return False
+
+ >>> test_srs()
+ True
+
+
>>> v = h.GetVLR(0)
>>> v.recordid
34735
More information about the Liblas-commits
mailing list