summaryrefslogtreecommitdiff
path: root/testapp/myauthentication/tests.py
diff options
context:
space:
mode:
authorprathamesh2014-03-26 14:48:45 +0530
committerprathamesh2014-03-26 14:48:45 +0530
commitba50e500a1da9266f9bee5bc38b69635637f6129 (patch)
tree4836211b8109824d9f8912e80f83be1e6f857ce0 /testapp/myauthentication/tests.py
parentb2a95b4f99debc4d165bb0122b03b8e67f26b669 (diff)
downloadonline_test-ba50e500a1da9266f9bee5bc38b69635637f6129.tar.gz
online_test-ba50e500a1da9266f9bee5bc38b69635637f6129.tar.bz2
online_test-ba50e500a1da9266f9bee5bc38b69635637f6129.zip
User authentication using external database.
Django authentication backend overriden to authenticate user using spoken tutorial database. Added database router to handle the database operations.
Diffstat (limited to 'testapp/myauthentication/tests.py')
-rw-r--r--testapp/myauthentication/tests.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/testapp/myauthentication/tests.py b/testapp/myauthentication/tests.py
new file mode 100644
index 0000000..501deb7
--- /dev/null
+++ b/testapp/myauthentication/tests.py
@@ -0,0 +1,16 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+
+class SimpleTest(TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.assertEqual(1 + 1, 2)