Hi!
  I recently worked through the 
http://pylonshq.com/docs/0.9.5/testing_web_application.html
tutorial, and found some problems

First:
  - I tried Windows and Linux with same results. Does really
paste.fixture doesn't work in Windows?

Second
 - The last example doesn't work  (testing objects)

Tutorial 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'

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

As I didn't found any way to send this feedback to he pylons docs, I
post them here

Any help?

Thanks
  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