Changeset 8168


Ignore:
Timestamp:
16 Apr 2012, 06:51:20 (13 years ago)
Author:
uli
Message:

Update tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/widgets/tests/test_phonewidget.py

    r8164 r8168  
    145145
    146146    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.
    147150        content = SampleContent()
    148151        request = TestRequest()
     
    152155        request.form['form.foo.ext'] = u''
    153156        request.form['form.bar.country'] = u'+123'
    154         request.form['form.bar.area'] = u''
     157        request.form['form.bar.area'] = u'12'
    155158        request.form['form.bar.ext'] = u'789'
    156159        request.form['form.baz.country'] = u'+123'
     
    162165
    163166        # check new values in object
     167        # as there were errors in the form, no value was set at all
    164168        self.assertEqual(content.foo, None)
    165         self.assertEqual(content.bar, 'bar') # input error, no value was set
    166         self.assertEqual(content.baz, None) # XXX: This is not correct
     169        self.assertEqual(content.bar, 'bar')
     170        self.assertEqual(content.baz, None)
    167171        return
    168172
Note: See TracChangeset for help on using the changeset viewer.