Hi there,
I'm currently playing around with nose testing and i want to test my
controller. I finally have my tests running (Some problems with setup-
app, but thats another story ^^) and now i stumbled upon a question i
cant find something within the tg2-docs for:
Is it possible to check the values in the dictionary returned by the
controller-method? For example:
class MyController(BaseController):
def index(self):
return dict(page="abc", data="something", x=5)
class TestMyController:
def test_index(self):
r = app.get('/')
assert_true(r.???.page == "abc")
Is something like that possible?
Greetings,
Daishy
--
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.