Skip to content

Commit

Permalink
Found a failing test for @amol-'s issue with Deferred.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Jul 10, 2012
1 parent 2c3c015 commit 1f5ee52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ class TestInputField(WidgetTest):
params = {'value':6}
expected = '<input type="foo" class="something" value="6"/>'

class TestInputFieldWithDeferred(WidgetTest):
widget = InputField
attrs = {'type':'foo', 'css_class':'something'}
params = {'value': twc.Deferred(lambda:6)}
expected = '<input type="foo" class="something" value="6"/>'

class TestTextField(WidgetTest):
widget = TextField
attrs = {'css_class':'something', 'size':'60', 'placeholder': "Search..."}
Expand Down

0 comments on commit 1f5ee52

Please sign in to comment.