App Engine Python SDK version 1.7.4 (2)
[gae.git] / python / lib / django_1_4 / tests / regressiontests / localflavor / ec / tests.py
blob0ebe2f396d417ad38ed3e551eda95980dab3fdcd
1 from django.contrib.localflavor.ec.forms import ECProvinceSelect
3 from django.test import SimpleTestCase
5 class ECLocalFlavorTests(SimpleTestCase):
6 def test_ECProvinceSelect(self):
7 p = ECProvinceSelect()
8 out = u"""<select name="province">
9 <option value="A">Azuay</option>
10 <option value="B">Bol\xedvar</option>
11 <option value="F">Ca\xf1ar</option>
12 <option value="C">Carchi</option>
13 <option value="H">Chimborazo</option>
14 <option value="X">Cotopaxi</option>
15 <option value="O">El Oro</option>
16 <option value="E">Esmeraldas</option>
17 <option value="W">Gal\xe1pagos</option>
18 <option value="G">Guayas</option>
19 <option value="I">Imbabura</option>
20 <option value="L">Loja</option>
21 <option value="R">Los R\xedos</option>
22 <option value="M">Manab\xed</option>
23 <option value="S">Morona Santiago</option>
24 <option value="N">Napo</option>
25 <option value="D">Orellana</option>
26 <option value="Y">Pastaza</option>
27 <option value="P">Pichincha</option>
28 <option value="SE">Santa Elena</option>
29 <option value="SD">Santo Domingo de los Ts\xe1chilas</option>
30 <option value="U" selected="selected">Sucumb\xedos</option>
31 <option value="T">Tungurahua</option>
32 <option value="Z">Zamora Chinchipe</option>
33 </select>"""
34 self.assertHTMLEqual(p.render('province', 'U'), out)