Chris McDonough wrote:

Hi Julisz,  What you've done above *should* work, but it doesn't due to
a bug in Pyramid 1.0 that has been fixed on the trunk.  In the meantime,
under 1.0, you can work around it like this, though (untested):

class FunctionalTests(unittest.TestCase):
      def setUp(self):
          self.config = testing.setUp()
          self.request = testing.DummyRequest()
          self.request.registry = self.config.registry
          from webtest import TestApp
          self.testapp = TestApp("config:test.ini", relative_to="./")

      def tearDown(self):
          testing.tearDown()

      def test_home(self):
          response = self.testapp.get(route_path('home', self.request),
                                      status=200)
          self.failUnless('<html' in response.body)
          self.failUnless('discuss' in response.body)

Unfortunately, it gives me the same error.

Regards,
--
Juliusz Gonera
http://juliuszgonera.com/

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