diff options
Diffstat (limited to 'tests.py')
-rw-r--r-- | tests.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests.py b/tests.py new file mode 100644 index 0000000..19c9cf0 --- /dev/null +++ b/tests.py @@ -0,0 +1,13 @@ +from django.utils import unittest +from django.test.client import Client + +class SimpleTest(unittest.TestCase): + def setUp(self): + # Every test needs a client + self.client = Client() + + def test_index_page(self): + #Issue a get request + response = self.client.get('/') + + self.assertEquals(response.status_code, 200) |