freeipa/tests
John Dennis 159b681c16 Cookie Expires date should be locale insensitive
The Expires attribute in a cookie is supposed to follow the RFC 822
(superseded by RFC 1123) date format. That format includes a weekday
abbreviation (e.g. Tue) which must be in English according to the
RFC's.

ipapython/cookie.py has methods to parse and format the Expires
attribute but they were based on strptime() and strftime() which
respects the locale. If a non-English locale is in effect the wrong
date string will be produced and/or it won't be able to parse the date
string.

The fix is to use the date parsing and formatting functions from
email.utils which specifically follow the RFC's and are not locale
sensitive.

This patch also updates the unit test to use email.utils as well.

The patch should be applied to the following branches:

Ticket: https://fedorahosted.org/freeipa/ticket/3313
2012-12-20 16:39:25 +01:00
..
test_cmdline Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
test_install Use DN objects instead of strings 2012-08-12 16:23:24 -04:00
test_ipalib Switch %r specifiers to '%s' in Public errors 2012-12-11 10:52:06 +01:00
test_ipapython Cookie Expires date should be locale insensitive 2012-12-20 16:39:25 +01:00
test_ipaserver Internationalization for public errors 2012-09-03 18:16:12 +02:00
test_pkcs10 Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
test_xmlrpc Fix delegation-find command --group handling 2012-12-19 16:32:15 +01:00
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
data.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
i18n.py Arrange stripping .po files 2012-07-24 16:54:21 -04:00
test_util.py Sort lists so order is predictable and tests pass as expected. 2011-08-31 11:18:08 +02:00
util.py Use DN objects instead of strings 2012-08-12 16:23:24 -04:00