joey: thuban/Extensions/wms/test test_parser.py,1.3,1.4

Bernhard Herzog bh at intevation.de
Wed Mar 24 17:48:58 CET 2004


cvs at intevation.de writes:

> Author: joey
>
> Update of /thubanrepository/thuban/Extensions/wms/test
> In directory doto:/tmp/cvs-serv11953
>
> Modified Files:
> 	test_parser.py 
> Log Message:
> Need to encode non-ascii strings since Python works with unicode
> strings internally, otherwise comparisons will fail.
[...]
> -        self.assertEquals (self.getTitle(),'Frida - Freie Vektor-Geodaten Osnabrück')
> +        self.assertEquals (self.getTitle().encode('latin-1'),'Frida - Freie Vektor-Geodaten Osnabrück')

Alternatively you could use unicode literals instead.

BTW, you still have spaces before the opening parenthesis.  Keeping the
lines shorter than 79 characters and putting spaces after the commas
would also be more in line with the coding conventions.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Skencil                                http://sketch.sourceforge.net/
Thuban                                  http://thuban.intevation.org/




More information about the Thuban-devel mailing list

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