jonathan: thuban/test test_load.py,1.45,1.46
cvs@intevation.de
cvs at intevation.de
Fri May 6 16:19:25 CEST 2005
Author: jonathan
Update of /thubanrepository/thuban/test
In directory doto:/tmp/cvs-serv30246/test
Modified Files:
test_load.py
Log Message:
(TestRasterLayer): Change file_contents to include opacity and masktype
variables.
(TestRasterLayer.test): Include tests for opacity and masktype changes.
Index: test_load.py
===================================================================
RCS file: /thubanrepository/thuban/test/test_load.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- test_load.py 28 Jan 2005 15:54:00 -0000 1.45
+++ test_load.py 6 May 2005 14:19:23 -0000 1.46
@@ -664,7 +664,7 @@
title="single map&layer">
<map title="Test Map">
<rasterlayer visible="false" filename="../../Data/iceland/island.tif"
- title="My RasterLayer"/>
+ title="My RasterLayer" opacity="0.4" masktype="alpha"/>
</map>
</session>
'''
@@ -681,6 +681,9 @@
layer = map.Layers()[0] # one layer in the sample
eq(layer.Title(), "My RasterLayer")
+ eq(layer.Opacity(), 0.4)
+ eq(layer.MaskType(), layer.MASK_ALPHA)
+
self.failIf(layer.Visible())
self.failUnless(filenames_equal(layer.GetImageFilename(),
os.path.join(self.temp_dir(),
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)