Hi all.

I have a little problem. I have begin to study tests, and wish to test
my pylons application.

My method view take a parameters, address.

I want to test it, but don't know how to pass this parameter using nosetests.

from artigos.tests import *

class TestTemplateController(TestController):
    def test_view(self):
        response = self.app.get(url_for(controller='template',action='view'))

Results in:

TypeError: view() takes exactly 2 arguments (1 given)

How can I pass the argument?

[]'s
- Walter

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to