Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed the rest of the US localflavor tests that were forgotten in r15…

…058. Refs r15029.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15121 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6c54bb72f0b30adaf10c6d8507e7975ca83f0c04 1 parent d18d37c
Jannis Leidel authored December 31, 2010
38  tests/regressiontests/localflavor/us/tests.py
@@ -24,8 +24,12 @@ def test_field_blank_option(self):
24 24
 <option value="">---------</option>
25 25
 <option value="AL">Alabama</option>
26 26
 <option value="AK">Alaska</option>
  27
+<option value="AS">American Samoa</option>
27 28
 <option value="AZ">Arizona</option>
28 29
 <option value="AR">Arkansas</option>
  30
+<option value="AA">Armed Forces Americas</option>
  31
+<option value="AE">Armed Forces Europe</option>
  32
+<option value="AP">Armed Forces Pacific</option>
29 33
 <option value="CA">California</option>
30 34
 <option value="CO">Colorado</option>
31 35
 <option value="CT">Connecticut</option>
@@ -33,6 +37,7 @@ def test_field_blank_option(self):
33 37
 <option value="DC">District of Columbia</option>
34 38
 <option value="FL">Florida</option>
35 39
 <option value="GA" selected="selected">Georgia</option>
  40
+<option value="GU">Guam</option>
36 41
 <option value="HI">Hawaii</option>
37 42
 <option value="ID">Idaho</option>
38 43
 <option value="IL">Illinois</option>
@@ -57,10 +62,12 @@ def test_field_blank_option(self):
57 62
 <option value="NY">New York</option>
58 63
 <option value="NC">North Carolina</option>
59 64
 <option value="ND">North Dakota</option>
  65
+<option value="MP">Northern Mariana Islands</option>
60 66
 <option value="OH">Ohio</option>
61 67
 <option value="OK">Oklahoma</option>
62 68
 <option value="OR">Oregon</option>
63 69
 <option value="PA">Pennsylvania</option>
  70
+<option value="PR">Puerto Rico</option>
64 71
 <option value="RI">Rhode Island</option>
65 72
 <option value="SC">South Carolina</option>
66 73
 <option value="SD">South Dakota</option>
@@ -68,19 +75,12 @@ def test_field_blank_option(self):
68 75
 <option value="TX">Texas</option>
69 76
 <option value="UT">Utah</option>
70 77
 <option value="VT">Vermont</option>
  78
+<option value="VI">Virgin Islands</option>
71 79
 <option value="VA">Virginia</option>
72 80
 <option value="WA">Washington</option>
73 81
 <option value="WV">West Virginia</option>
74 82
 <option value="WI">Wisconsin</option>
75 83
 <option value="WY">Wyoming</option>
76  
-<option value="AS">American Samoa</option>
77  
-<option value="GU">Guam</option>
78  
-<option value="MP">Northern Mariana Islands</option>
79  
-<option value="PR">Puerto Rico</option>
80  
-<option value="VI">Virgin Islands</option>
81  
-<option value="AA">Armed Forces Americas</option>
82  
-<option value="AE">Armed Forces Europe</option>
83  
-<option value="AP">Armed Forces Pacific</option>
84 84
 </select>"""
85 85
         self.assertEqual(str(self.form['state']), state_select_html)
86 86
 
@@ -91,15 +91,21 @@ def test_full_postal_code_list(self):
91 91
 <option value="">---------</option>
92 92
 <option value="AL">Alabama</option>
93 93
 <option value="AK">Alaska</option>
  94
+<option value="AS">American Samoa</option>
94 95
 <option value="AZ">Arizona</option>
95 96
 <option value="AR">Arkansas</option>
  97
+<option value="AA">Armed Forces Americas</option>
  98
+<option value="AE">Armed Forces Europe</option>
  99
+<option value="AP">Armed Forces Pacific</option>
96 100
 <option value="CA">California</option>
97 101
 <option value="CO">Colorado</option>
98 102
 <option value="CT">Connecticut</option>
99 103
 <option value="DE">Delaware</option>
100 104
 <option value="DC">District of Columbia</option>
  105
+<option value="FM">Federated States of Micronesia</option>
101 106
 <option value="FL">Florida</option>
102 107
 <option value="GA" selected="selected">Georgia</option>
  108
+<option value="GU">Guam</option>
103 109
 <option value="HI">Hawaii</option>
104 110
 <option value="ID">Idaho</option>
105 111
 <option value="IL">Illinois</option>
@@ -109,6 +115,7 @@ def test_full_postal_code_list(self):
109 115
 <option value="KY">Kentucky</option>
110 116
 <option value="LA">Louisiana</option>
111 117
 <option value="ME">Maine</option>
  118
+<option value="MH">Marshall Islands</option>
112 119
 <option value="MD">Maryland</option>
113 120
 <option value="MA">Massachusetts</option>
114 121
 <option value="MI">Michigan</option>
@@ -124,10 +131,13 @@ def test_full_postal_code_list(self):
124 131
 <option value="NY">New York</option>
125 132
 <option value="NC">North Carolina</option>
126 133
 <option value="ND">North Dakota</option>
  134
+<option value="MP">Northern Mariana Islands</option>
127 135
 <option value="OH">Ohio</option>
128 136
 <option value="OK">Oklahoma</option>
129 137
 <option value="OR">Oregon</option>
  138
+<option value="PW">Palau</option>
130 139
 <option value="PA">Pennsylvania</option>
  140
+<option value="PR">Puerto Rico</option>
131 141
 <option value="RI">Rhode Island</option>
132 142
 <option value="SC">South Carolina</option>
133 143
 <option value="SD">South Dakota</option>
@@ -135,21 +145,11 @@ def test_full_postal_code_list(self):
135 145
 <option value="TX">Texas</option>
136 146
 <option value="UT">Utah</option>
137 147
 <option value="VT">Vermont</option>
  148
+<option value="VI">Virgin Islands</option>
138 149
 <option value="VA">Virginia</option>
139 150
 <option value="WA">Washington</option>
140 151
 <option value="WV">West Virginia</option>
141 152
 <option value="WI">Wisconsin</option>
142 153
 <option value="WY">Wyoming</option>
143  
-<option value="AS">American Samoa</option>
144  
-<option value="GU">Guam</option>
145  
-<option value="MP">Northern Mariana Islands</option>
146  
-<option value="PR">Puerto Rico</option>
147  
-<option value="VI">Virgin Islands</option>
148  
-<option value="AA">Armed Forces Americas</option>
149  
-<option value="AE">Armed Forces Europe</option>
150  
-<option value="AP">Armed Forces Pacific</option>
151  
-<option value="FM">Federated States of Micronesia</option>
152  
-<option value="MH">Marshall Islands</option>
153  
-<option value="PW">Palau</option>
154 154
 </select>"""
155 155
         self.assertEqual(str(self.form['postal_code']), usps_select_html)

0 notes on commit 6c54bb7

Please sign in to comment.
Something went wrong with that request. Please try again.