From ba50e500a1da9266f9bee5bc38b69635637f6129 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Wed, 26 Mar 2014 14:48:45 +0530 Subject: User authentication using external database. Django authentication backend overriden to authenticate user using spoken tutorial database. Added database router to handle the database operations. --- testapp/myauthentication/tests.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 testapp/myauthentication/tests.py (limited to 'testapp/myauthentication/tests.py') 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) -- cgit