Skip to content

Commit 2fde371

Browse files
committed
Add tests for view
1 parent d701178 commit 2fde371

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from cli_tests import *
22
from url_tests import *
33
from browser_tests import *
4+
from about_tests import *
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from django.core.urlresolvers import reverse
2+
3+
from kalite.testing.base import KALiteTestCase
4+
5+
class AboutTestCase(KALiteTestCase):
6+
7+
def test_about(self):
8+
response = self.client.get(reverse('about'))
9+
self.assertEqual(response.status_code, 200)
10+
11+
def test_about_data(self):
12+
response = self.client.get(reverse('about_data'))
13+
self.assertIn('success', response.content)

0 commit comments

Comments
 (0)