On my website http://www.mathmaster.org, I have a lot of forms that
generated a PDF math worksheets file after the user click the submit
button.

The way I test these pages is using the code similar to this method:

def test_addition_post(self):
      post_data = {
            'max_value': 10,
            'min_value': 1,
            ...,
        }
        response = self.client.post('/addition/', post_data)
        self.failUnlessEqual(response.status_code, 200)
        self.failUnless('Data received', response.content)

I don't think the code is working correctly because all my tests
passed and I still get a simple reference error.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.


Reply via email to