This is most likely a very trivial question, but believe me I did my due diligence and googled but alas I can't find the answer.
All I'm trying to do is write tests for my controllers but I fail to see how to set an AUTH_USER environ variable. I thought to just instantiate my User model and pass it in the headers attribute of self.app.post though i get "AssertionError: Environmental variable HTTP_AUTH_USER is not a string:" What am I missing here? How do I mimic a logged in user when testing my controllers? -- 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.
