Re: Using the test client to verify form fields content

2008-12-18 Thread Daniel Roseman
On Dec 18, 6:16 am, sagi s wrote: > I'd like to use the test client to verify that when there's an error > in a form field, the input field in the > response is populated with the original input. > > So I'd like to do something like: > > iteration = 'bad data' > response = self.client.post('/metr

Using the test client to verify form fields content

2008-12-17 Thread sagi s
I'd like to use the test client to verify that when there's an error in a form field, the input field in the response is populated with the original input. So I'd like to do something like: iteration = 'bad data' response = self.client.post('/metrics/add/', { 'iteration' : iterat