Hi Julisz,

Did you manage to solve this problem? I am stuck with the same issue.

Kind regards,
Renier de Bruyn

On Monday, 2 May 2011 22:39:00 UTC+2, Juliusz Gonera wrote:
>
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to