Changeset 5366 for main/waeup.widgets.core
- Timestamp:
- 4 Aug 2010, 18:35:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.widgets.core/trunk/src/waeup/widgets/core/tests/test_dictwidget.py
r5296 r5366 233 233 check_list = ( 234 234 'checkbox', 'field.foo.remove_0', 'input', 'field.foo.key.0.bar', 235 'existing', 236 'checkbox', 'field.foo.remove_1', 'input', 'field.foo.key.1.bar', 235 237 'second', 236 'checkbox', 'field.foo.remove_1', 'input', 'field.foo.key.1.bar',237 'existing',238 238 'submit', 'submit', 'field.foo.add', 239 239 'field.foo.count" value="2"', … … 261 261 self.assertEquals(widget.getInputValue(), {u'second': u'entry'}) 262 262 output = widget() 263 # Entries appear in alphabetical order, sorted by key... 263 264 check_list = ( 264 265 'checkbox', 'field.foo.remove_0', 265 'input', 'field.foo.key.0.bar', ' other',266 'input', 'field.foo.value.0.baz', ' entry',266 'input', 'field.foo.key.0.bar', 'existing', 267 'input', 'field.foo.value.0.baz', 'one', 267 268 'checkbox', 'field.foo.remove_1', 268 'input', 'field.foo.key.1.bar', ' existing',269 'input', 'field.foo.value.1.baz', ' one',269 'input', 'field.foo.key.1.bar', 'other', 270 'input', 'field.foo.value.1.baz', 'entry', 270 271 'submit', 'submit', 'field.foo.add', 271 272 'field.foo.count" value="2"', … … 432 433 check_list = ['<ol', 'class=', 'testwidget', 433 434 '<li', 'entry: two', '</li', 434 '<li', 'three: a value', '</li',435 435 '<li', 'fourth: entry', '</li', 436 436 '<li', 'one: entry', '</li', 437 '<li', 'three: a value', '</li', 437 438 '</ol'] 438 439 self.verifyResult(self.widget(), check_list, inorder=True)
Note: See TracChangeset for help on using the changeset viewer.