HI all!

I recently worked thorugh the testing tutorial at
http://pylonshq.com/docs/0.9.5/testing_web_application.html,
and found following issues:

When I tried to test objects, as seen at the end of the tutorial,  I
received the following error:

The offending code

from testexample.tests import *

class TestCommentsController(TestController):
    def test_index(self):
        response = self.app.get(url_for(controller='/'))
        assert response.email.name == 'Fred Smith'

$ nosetests
...
Traceback (most recent call last):
  File "/home/avillena/TestExample/testexample/tests/functional/
test_controller.py", line 7, in test_index
    assert response.email.name == 'Fred Smith'
AttributeError: 'TestResponse' object has no attribute 'email'

I have tested this issue in Windows with Python 2.5 and Linux with
Python 2.4.2

The second issue is that the tutorial says that paste.fixture doesn't
work in Windows, but the tutorial behaves equally on both platforms...

Any help?

Agustin


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