Beispiel #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)
Beispiel #2
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'))