Test sent success
This commit is contained in:
parent
f47ee56b4a
commit
5e8132d162
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue