1
Fork 0

Test sent success

This commit is contained in:
Jake Howard 2016-01-24 20:34:19 +00:00
parent f47ee56b4a
commit 5e8132d162

View file

@ -28,6 +28,10 @@ class AboutIndexTestCase(TestCase):
response = self.client.post(reverse('pages:about'), data)
self.assertRedirects(response, '/about/?sent')
def test_success_message_shows(self):
response = self.client.get(reverse('pages:about') + '?sent')
self.assertContains(response, 'Already Sent')
class Custom404TestCase(TestCase):
def test_accessable(self):