From 5e8132d1620cd2a8f552ba13967cdc51afbe76c6 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 24 Jan 2016 20:34:19 +0000 Subject: [PATCH] Test sent success --- project/pages/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/project/pages/tests.py b/project/pages/tests.py index e987f7d..aabddcf 100644 --- a/project/pages/tests.py +++ b/project/pages/tests.py @@ -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):