Changeset 8168
- Timestamp:
- 16 Apr 2012, 06:51:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_phonewidget.py
r8164 r8168 145 145 146 146 def test_partial_values(self): 147 # make sure partial numbers will not be enough 148 # XXX: we have to test each single field alone as an error 149 # in one field will stop setting the other ones. 147 150 content = SampleContent() 148 151 request = TestRequest() … … 152 155 request.form['form.foo.ext'] = u'' 153 156 request.form['form.bar.country'] = u'+123' 154 request.form['form.bar.area'] = u' '157 request.form['form.bar.area'] = u'12' 155 158 request.form['form.bar.ext'] = u'789' 156 159 request.form['form.baz.country'] = u'+123' … … 162 165 163 166 # check new values in object 167 # as there were errors in the form, no value was set at all 164 168 self.assertEqual(content.foo, None) 165 self.assertEqual(content.bar, 'bar') # input error, no value was set166 self.assertEqual(content.baz, None) # XXX: This is not correct169 self.assertEqual(content.bar, 'bar') 170 self.assertEqual(content.baz, None) 167 171 return 168 172
Note: See TracChangeset for help on using the changeset viewer.