65
60
# login so we're not redirected when posting the form data
66
61
self.client.login(username='testuser', password='test')
69
63
response = self.client.post(path, data)
71
65
# should get a 200 if the integer size is caught by form validation
72
66
self.assertEquals(response.status_code, 200)
74
68
# check that the user friendly error message exists in the response
75
69
self.assertContains(response, 'Ensure this value is less than or equal to 100.')