Esempio n. 1
0
    def test_BERegionSelect(self):
        f = BERegionSelect()
        out = u'''<select name="regions">
<option value="BRU">Brussels Capital Region</option>
<option value="VLG" selected="selected">Flemish Region</option>
<option value="WAL">Wallonia</option>
</select>'''
        self.assertEqual(f.render('regions', 'VLG'), out)
Esempio n. 2
0
File: be.py Progetto: ssaltzman/POET
    def test_BERegionSelect(self):
        f = BERegionSelect()
        out = u'''<select name="regions">
<option value="BRU">Brussels Capital Region</option>
<option value="VLG" selected="selected">Flemish Region</option>
<option value="WAL">Wallonia</option>
</select>'''
        self.assertEqual(f.render('regions', 'VLG'), out)
Esempio n. 3
0
File: be.py Progetto: atizo/django
 def test_region_field(self):
     w = BERegionSelect()
     self.assertEqual(u'<select name="regions">\n<option value="BRU">Brussels Capital Region</option>\n<option value="VLG" selected="selected">Flemish Region</option>\n<option value="WAL">Wallonia</option>\n</select>', w.render('regions', 'VLG'))
Esempio n. 4
0
 def test_region_field(self):
     w = BERegionSelect()
     self.assertEqual(
         u'<select name="regions">\n<option value="BRU">Brussels Capital Region</option>\n<option value="VLG" selected="selected">Flemish Region</option>\n<option value="WAL">Wallonia</option>\n</select>',
         w.render('regions', 'VLG'))