From 4adf048a5165d0b6c01310b2a80d68b97a2fa610 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Thu, 14 Aug 2008 04:29:02 +0000 Subject: Fixed #8276 -- Changed the names of a few Polish localflavor classes to match their common names/acronyms, similar to other localflavors. Backwards incompatible if you're using these classes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8345 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/localflavor/pl.py | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'tests/regressiontests/forms') diff --git a/tests/regressiontests/forms/localflavor/pl.py b/tests/regressiontests/forms/localflavor/pl.py index becdda8a1d..89679644db 100644 --- a/tests/regressiontests/forms/localflavor/pl.py +++ b/tests/regressiontests/forms/localflavor/pl.py @@ -2,17 +2,17 @@ # Tests for the contrib/localflavor/ PL form fields. tests = r""" -# PLVoivodeshipSelect ########################################################## +# PLProvinceSelect ########################################################## ->>> from django.contrib.localflavor.pl.forms import PLVoivodeshipSelect ->>> f = PLVoivodeshipSelect() +>>> from django.contrib.localflavor.pl.forms import PLProvinceSelect +>>> f = PLProvinceSelect() >>> f.render('voivodeships','pomerania') u'' -# PLAdministrativeUnitSelect ########################################################## +# PLCountiesSelect ########################################################## ->>> from django.contrib.localflavor.pl.forms import PLAdministrativeUnitSelect ->>> f = PLAdministrativeUnitSelect() +>>> from django.contrib.localflavor.pl.forms import PLCountiesSelect +>>> f = PLCountiesSelect() >>> f.render('administrativeunit','katowice') u'' @@ -27,10 +27,10 @@ ValidationError: [u'Enter a postal code in the format XX-XXX.'] >>> f.clean('41-403') u'41-403' -# PLTaxNumberField ############################################################### +# PLNIPField ############################################################### ->>> from django.contrib.localflavor.pl.forms import PLTaxNumberField ->>> f = PLTaxNumberField() +>>> from django.contrib.localflavor.pl.forms import PLNIPField +>>> f = PLNIPField() >>> f.clean('43-343-234-323') Traceback (most recent call last): ... @@ -44,10 +44,10 @@ Traceback (most recent call last): ... ValidationError: [u'Wrong checksum for the Tax Number (NIP).'] -# PLNationalIdentificationNumberField ############################################ +# PLPESELField ############################################ ->>> from django.contrib.localflavor.pl.forms import PLNationalIdentificationNumberField ->>> f = PLNationalIdentificationNumberField() +>>> from django.contrib.localflavor.pl.forms import PLPESELField +>>> f = PLPESELField() >>> f.clean('80071610614') u'80071610614' >>> f.clean('80071610610') @@ -63,10 +63,10 @@ Traceback (most recent call last): ... ValidationError: [u'National Identification Number consists of 11 digits.'] -# PLNationalBusinessRegisterField ################################################ +# PLREGONField ################################################ ->>> from django.contrib.localflavor.pl.forms import PLNationalBusinessRegisterField ->>> f = PLNationalBusinessRegisterField() +>>> from django.contrib.localflavor.pl.forms import PLREGONField +>>> f = PLREGONField() >>> f.clean('590096454') u'590096454' >>> f.clean('590096453') -- cgit v1.3