<s> from django . contrib . localflavor . at . forms import ( ATZipCodeField , ATStateSelect , <EOL> ATSocialSecurityNumberField ) <EOL> from django . test import SimpleTestCase <EOL> class ATLocalFlavorTests ( SimpleTestCase ) : <EOL> def test_ATStateSelect ( self ) : <EOL> f = ATStateSelect ( ) <EOL> out = u'''<STR_LIT>''' <EOL> self . assertHTMLEqual ( f . render ( '<STR_LIT>' , '<STR_LIT>' ) , out ) <EOL> def test_ATZipCodeField ( self ) : <EOL> error_format = [ u'<STR_LIT>' ] <EOL> valid = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> invalid = { <EOL> '<STR_LIT>' : error_format , <EOL> '<STR_LIT>' : error_format , <EOL> '<STR_LIT>' : error_format , <EOL> '<STR_LIT>' : error_format , <EOL> } <EOL> self . assertFieldOutput ( ATZipCodeField , valid , invalid ) <EOL> def test_ATSocialSecurityNumberField ( self ) : <EOL> error_format = [ u'<STR_LIT>' ] <EOL> valid = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> invalid = { <EOL> '<STR_LIT>' : error_format , <EOL> '<STR_LIT>' : error_format , <EOL> } <EOL> self . assertFieldOutput ( ATSocialSecurityNumberField , valid , invalid ) </s>
