sorry, the keyboard sent the mesage a bit too soon
class MyController(BaseController):
@expose('sometemplate')
def some_method(self, **kwargs):
compute_something()
return dict(result=['lorem', 'ipsum'])
how to write a test that will check the resulting dict directly, (that
is not the template output) ??
test_some_method(self):
assert ?????() == {result:['lorem','ipsum']}
many thanks
NiL
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.