Commit Graph

68 Commits

Author SHA1 Message Date
Russell Keith-Magee e1ad54307f [1.2.X] Fixed #15175 -- Ensured that Chliean RUT checksum letters aren't case sensitive. Thanks to rvimer for the report, and to ersame for the patch.
H: Enter commit message.  Lines beginning with 'HG:' are removed.

Backport of r15450 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15454 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-08 12:22:44 +00:00
Alex Gaynor 05588a1897 [1.2.X] Converted the Czech localflavor tests to be unittests. We have always been at war with doctests. Thanks to Idan Gazit. Partial backport of [15062].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15063 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-27 07:47:25 +00:00
Jannis Leidel 79e64d7cff [1.2.X] Converted Swedish localflavor tests from doctests to unittests. Thanks, Idan Gazit!
Backport from trunk (r15057).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15059 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-26 11:49:45 +00:00
Alex Gaynor eb7f2789f8 [1.2.X] Fixed a Python 2.5 syntax error. Backport of [14983].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-19 02:01:01 +00:00
Alex Gaynor 160533410f [1.2.X] Fixed #14871, #14872 -- ZAIDField didn't handle alll EMPTY_VALUES correctly and ZAPostCodeField didn't respect *args or **kwargs (such as required=False). Also converted South African localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14956].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14980 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:16:15 +00:00
Alex Gaynor 989f59299c [1.2.X] Converted Uruguayan localflavor doctests into unittests. We have alwyas been at war with doctests. Thanks to Idan Gazit. Backport of [14955].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14979 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:16:01 +00:00
Alex Gaynor 0c33a3a89c [1.2.X] Converted United States localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14954].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14978 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:15:52 +00:00
Alex Gaynor e7703398c4 [1.2.X] Converted United Kingdom localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14953].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:15:41 +00:00
Alex Gaynor b17b567744 [1.2.X] Converted Slovak localflavor doctests into unitttests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14952].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:15:31 +00:00
Alex Gaynor 60e36fbc72 [1.2.X] Fixed #14864, #14864 -- ROCIFField didn't accept values starting with RO, as it was supposed to, and ROCNPField, ROIBANField, and ROPhoneNumberField didn't handle all EMPTY_VALUES correctly. Also converted Romanian localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14951].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:15:18 +00:00
Alex Gaynor b6fbf30a32 [1.2.X] Converted Portuguese localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14950].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14974 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:15:03 +00:00
Alex Gaynor 4b3198d15d [1.2.X] Fixed #14860 -- PLPESELField, PLNIPField, and PLREGONField didn't handle all EMPTY_VALUES correctly. Also converted teh Polish localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14949].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:14:52 +00:00
Alex Gaynor a15aa66917 [1.2.X] Converted Dutch localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14948].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:14:39 +00:00
Alex Gaynor 771ffbf0f6 [1.2.X] Converted Kuwaiti localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14947].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:14:30 +00:00
Alex Gaynor 5c3ede2171 [1.2.X] Converted Japanese localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14946].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14970 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:14:20 +00:00
Alex Gaynor f2a8534d7b [1.2.X] Fixed #14859 -- ITSocialSecurityNumberField and ITVatNumberField didn't handle all EMPTY_VALUES gracefully. Also converted the Italias localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14945].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:14:11 +00:00
Alex Gaynor edcb475381 [1.2.X] Converted Icelandic localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14944].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:58 +00:00
Alex Gaynor 56f5043c23 [1.2.X] Converted Irish localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14942].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:49 +00:00
Alex Gaynor 3c50c138c5 [1.2.X] Converted Indonesian localflavor doctests to unittests. We have always been a war with doctests. Thanks to Idan Gazit. Backport of [14941].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14966 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:39 +00:00
Alex Gaynor 994ba4f3ad [1.2.X] Converted generic localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14940].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14965 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:30 +00:00
Alex Gaynor 4aedbcb57e [1.2.X] Converted French localflavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14939].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14964 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:20 +00:00
Alex Gaynor aaaaa831fe [1.2.X] Converted Finnish localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14938].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14963 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:11 +00:00
Alex Gaynor 812b1b2d8c [1.2.X] Converted Spanish localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14937].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14962 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:13:01 +00:00
Alex Gaynor cae809bb3c [1.2.X] Converted Chilean localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14936].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14961 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:12:51 +00:00
Alex Gaynor 177b090ec2 [1.2.X] Converted Swiss localflavor doctests to unittests. Thanks to Idan Gazit for the patch. Backport of [14935].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14960 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:12:41 +00:00
Alex Gaynor 94adbd1d12 [1.2.X] Converted Canadian localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14934].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14959 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:12:31 +00:00
Alex Gaynor d2ef2cd9cc [1.2.X] Converted the Brazillian localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit. Backport of [14933].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14958 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:12:22 +00:00
Alex Gaynor f32feafccf [1.2.X] Converted Australian localfavor doctests into unittests. We have always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14931],
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14957 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-18 22:12:08 +00:00
Alex Gaynor b734e3514e [1.2.X] Fixed #14499 -- ATSocialSecurityNumberField now responds to all EMPTY_VALUES correctly. Also converted Austrian localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14873].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14875 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-12 04:37:01 +00:00
Alex Gaynor 9bbd12120e [1.2.X] Converted the Argentina localflavor doctests to unittests. We have always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14872].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14874 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-12 04:35:24 +00:00
Jannis Leidel 6690e08eac [1.2.X] Fixed broken German localflavor test introduced in r14627. Thanks for Rubber Ducking, Alex and Carl.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-02 02:00:32 +00:00
Alex Gaynor 7236b76e25 Corrected some issues with the backport from [14627].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-19 23:56:38 +00:00
Alex Gaynor da163cc957 [1.2.X] Began converting localflavor doctests into unittests, starting with the German ones. Also introduced a new base class to facilitate ease of testing form fields. We have always been at war with doctests. Thanks to Idan Gazit for the patch. Backport of [14626].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14627 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-19 19:34:17 +00:00
Russell Keith-Magee aa59bc7404 [1.2.X] Fixed #13732 -- Fixed minor typo in docstring. Thanks to schinckel for the report.
Backport of r13483 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-05 12:52:59 +00:00
Russell Keith-Magee b131561112 Fixed #13374 -- Modified a test so that it can pass under PyPy. This is a reimplementation of part of r12998, reverted in r13008. Thanks to Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13010 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-21 11:33:39 +00:00
Karen Tracey 829c5fdbee Revert part of r12998 that prevents the forms doctests in tests.py from running.
Adjust the fr.py localflavor tests to account for r13007.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@13008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-20 20:39:22 +00:00
Russell Keith-Magee 56eb340528 Fixed #13374 -- Corrected some more minor issues causing problems for PyPy. Thanks to Alex Gaynor for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12998 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-19 11:52:56 +00:00
Russell Keith-Magee b7b38a41b0 Fixed #13229 -- Corrected a test failure caused by the change in Finnish municipalities from r12958. Thanks to Karen for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12962 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-12 23:53:27 +00:00
Jannis Leidel 235bf7f1f7 Fixed test introduced in r12044 to actually test the issue.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-17 22:49:27 +00:00
Joseph Kocherhans 471596fc1a Merged soc2009/model-validation to trunk. Thanks, Honza!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12098 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-05 03:56:19 +00:00
Jannis Leidel 63662ff924 Fixed #8735 - Added Portuguese (pt) local flavor. Thanks Alcides Fonseca for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-01 21:35:26 +00:00
Jannis Leidel e0dc28df55 Fixed #8612 - Added Indonesian (id) localflavor. Thanks to Ronny Haryanto for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-01 21:34:50 +00:00
Jannis Leidel 4b2e674329 Fixed #12017 - Overriding the default error message of the UKPostcodeField works again.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12044 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-01 21:33:30 +00:00
Jannis Leidel 6eb205c914 Fixed #11123 - Added Irish (ie) localflavor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12043 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-01 21:33:00 +00:00
Jannis Leidel 82b33b1d80 Fixed #8068 - Added Kuwaiti (kw) localflavor. Thanks to Ahmad Al-Ibrahim for providing the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12042 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-01 21:32:24 +00:00
Jannis Leidel 3825bb2350 Fixed #10736 - Added Uruguayan (uy) localflavor. Thanks to Gonzalo Saavedra for providing the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-01 21:31:47 +00:00
Jannis Leidel d320deef25 Fixed #9289 - Added Swedish localflavor. Thanks to Andreas Pelme, Ludvig Ericson and Filip Noetzel for working on a patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22 21:10:40 +00:00
Karen Tracey 0fe8c20a28 Fixed #12146: Corrected Canadian postal code validation. Thanks paulschreiber and Mark Lavin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-13 17:01:22 +00:00
Malcolm Tredinnick f6309cbf80 Fixed #8515 -- Fixed validation of Polish REGON numbers.
Patch from Piotr Lewandowski.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-04-10 01:03:44 +00:00
Malcolm Tredinnick ec710220dd Fixed some test output in the wake of r9940.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9944 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-03-02 04:17:00 +00:00