Re: testclient cannot find the template

2010-12-15 Thread Piotr Zalewa
This should work, is /success working in dev server? zalun On 10-12-15 03:53, Kenneth Gonsalves wrote: On Wed, 2010-12-15 at 03:44 -0800, Piotr Zalewa wrote: It looks like the test can't find the /success/ URL and then tries to display a 404 error, but there is o 404.html template Do you have

Re: testclient cannot find the template

2010-12-15 Thread Kenneth Gonsalves
On Wed, 2010-12-15 at 17:23 +0530, Kenneth Gonsalves wrote: > On Wed, 2010-12-15 at 03:44 -0800, Piotr Zalewa wrote: > > It looks like the test can't find the /success/ URL > > and then tries to display a 404 error, but there is o 404.html > > template > > > > Do you have 404.html template created

Re: testclient cannot find the template

2010-12-15 Thread Kenneth Gonsalves
On Wed, 2010-12-15 at 03:44 -0800, Piotr Zalewa wrote: > It looks like the test can't find the /success/ URL > and then tries to display a 404 error, but there is o 404.html > template > > Do you have 404.html template created? no 404 template - but why can it not find the /success/ url? Do I ne

Re: testclient cannot find the template

2010-12-15 Thread Piotr Zalewa
Hi Kenneth, It looks like the test can't find the /success/ URL and then tries to display a 404 error, but there is o 404.html template Do you have 404.html template created? zalun On 10-12-15 01:13, Kenneth Gonsalves wrote: hi, I am trying to write a test of a view with test client. My test

testclient cannot find the template

2010-12-15 Thread Kenneth Gonsalves
hi, I am trying to write a test of a view with test client. My test is like this: class Testgetnum(unittest.TestCase): def setUp(self): self.client = Client() def testgetnum(self): response = self.client.post('/success/',{'id':1}) self.assertEqual(response.status