Prevent exception when adding new candidate

This commit is contained in:
Claude Paroz 2018-06-06 18:51:16 +02:00
parent 261ed1e99b
commit e3a9ef7443
2 changed files with 4 additions and 0 deletions

View file

@ -95,6 +95,8 @@ class CandidateTests(TestCase):
street = 'de Neuchâtel 99',
)
self.client.login(username='me', password='mepassword')
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
response = self.client.post(url, post_data)
self.assertEqual(response.status_code, 302)