I'm unit testing a google app engine app that uses the login setting in the app.yaml file. E.g.,
- url: /profile
script: main.py
login: required
I'm using testbed, nose, nose-gae, and webtest though not sure which of those matter.
My problem is that the login setting from app.yaml is ignored during testing. So if I don't have a logged in user and call
response = self.app.get("/profile")
I get the requested page instead of being redirected to the login page.
Is there a way to test the login settings from app.yaml?