From b6055397f5f379e2148eac73a958a2084e061663 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Wed, 27 Jun 2012 23:46:52 -0400 Subject: Added a simple tests.py --- tests.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests.py 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) -- cgit