Permalink
Browse files

Found the failing test for @amol-'s case.

  • Loading branch information...
ralphbean committed Jul 11, 2012
1 parent b94180f commit 284c66a386a4cb76c351ec6b6dd21fcf229080e3
Showing with 4 additions and 6 deletions.
  1. +4 −6 tests/test_widgets.py
@@ -86,14 +86,12 @@ class TestWidget(twc.Widget):
id='test'
inline_engine_name = 'mako'
template = "<p>${w.value}</p>"
value=twc.Deferred(lambda: 'test')
value=twc.Param()
test = TestWidget
assert(test.value != 'test')
ins = test.req()
ins.prepare()
assert(ins.value == 'test')
assert(test.display() == "<p>test</p>")
eq_(test.display(value="test"), "<p>test</p>")
eq_(test.display(value=twc.Deferred(lambda: 'test')), "<p>test</p>")
def test_child_attr(self):
class LayoutContainer(twc.CompoundWidget):

0 comments on commit 284c66a

Please sign in to comment.