I have this controller:
class HeplController(BaseController):
def index(self):
del session['user']
session.save()
return 'OK'
And I want to test if it works correctly with this test:
class TestHeplController(TestController):
def test_index(self):
#session['user'] = 'foo' ---> does not work
response = self.app.get(url_for(controller='hepl'))
assert 'user' not in response.session
How can I put something in the session object before I call
self.app.get(...)?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---