jschuengel: thuban/Extensions/umn_mapserver/test test_mapserver.py, 1.1, 1.2

cvs@intevation.de cvs at intevation.de
Wed Jun 16 12:52:04 CEST 2004


Author: jschuengel

Update of /thubanrepository/thuban/Extensions/umn_mapserver/test
In directory doto:/tmp/cvs-serv6839

Modified Files:
	test_mapserver.py 
Log Message:
(mapserver_import_Test_generalClasses.test_MF_Color):
Corrected the thubancolor test.


Index: test_mapserver.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/umn_mapserver/test/test_mapserver.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- test_mapserver.py	10 Jun 2004 12:53:58 -0000	1.1
+++ test_mapserver.py	16 Jun 2004 10:52:01 -0000	1.2
@@ -51,16 +51,16 @@
         
         # set Color with Thuban color obj
         testthubancolor = Color(0.5,1,0)
-        testcolor.set_color(testthubancolor)
+        testcolor.set_thubancolor(testthubancolor)
         eq(testcolor.get_red(),127)
         eq(testcolor.get_green(),255)
         eq(testcolor.get_blue(),0)
         
         # check if Thubancolor is set correct
         testtbcolor = testcolor.get_thubancolor()
-        eq(testtbcolor.red * 255, 127)
-        eq(testtbcolor.green * 255, 255)
-        eq(testtbcolor.blue * 255, 0)
+        eq(testtbcolor.red, 0.5)
+        eq(testtbcolor.green, 1)
+        eq(testtbcolor.blue, 0)
     
     
     def test_MF_Rectangle(self):





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)