[Freeipa-devel] [PATCH 35/35] ticket 1569 - Test DN object non-latin Unicode support

John Dennis jdennis at redhat.com
Wed Aug 3 23:35:08 UTC 2011


The DN unittest was lacking a test for i18n. The unittest was
updated to store "Hello" in Arabic with both utf-8 and unicode
and verify the values could be properly retrieved and converted
to dn string syntax.

During the testing a few problems were discovered and corrected.

* passing in utf-8 caused an ASCII decode error becuase of Python's
  silly default encoding of ASCII. The fix was to explictly use
  the utf-8 codec.

* there were a couple of places where encode/decode were not
  called correctly.

* the internal attr and value members of the AVA class were renamed
  to explicitly show they are stored as unicode.

Of course the unittest was updated as well.

--
John Dennis <jdennis at redhat.com>

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0035-ticket-1569-Test-DN-object-non-latin-Unicode-support.patch
Type: text/x-patch
Size: 9395 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110803/ad38f3ff/attachment.bin>


More information about the Freeipa-devel mailing list