changeset 4084 | 69739e6ebd2a |
parent 3536 | f6c9a5df80fb |
child 4172 | 4d4cef034eec |
--- a/web/test/unittest_formfields.py Wed Dec 09 15:47:01 2009 +0100 +++ b/web/test/unittest_formfields.py Wed Dec 09 16:05:01 2009 +0100 @@ -104,7 +104,7 @@ self.assertEquals(field.required, False) self.assertEquals(field.initial(None), None) self.assertIsInstance(field.widget, Radio) - self.assertEquals(field.vocabulary(mock(req=mock(_=unicode))), + self.assertEquals(field.vocabulary(mock(_cw=mock(_=unicode))), [(u'yes', '1'), (u'no', '')]) def test_bool_field_explicit_choices(self):