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 From 77caf5d44ab14d56efd4acbc65a6dd2d78c1c1a6 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Fri, 6 Jun 2014 15:20:45 +0530 Subject: changes made as per comments. --- testapp/myauthentication/tests.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'testapp/myauthentication/tests.py') diff --git a/testapp/myauthentication/tests.py b/testapp/myauthentication/tests.py index 501deb7..4103038 100644 --- a/testapp/myauthentication/tests.py +++ b/testapp/myauthentication/tests.py @@ -1,16 +1,5 @@ -""" -This file demonstrates writing tests using the unittest module. These will pass -when you run "manage.py test". +#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. -""" +#Write appropriate tests for the 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