mirror of
https://github.com/nikdoof/django-testauth.git
synced 2025-12-18 04:09:24 +00:00
Various small fixes and also some basic tests for the auth framework
This commit is contained in:
10
tests.py
Normal file
10
tests.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from auth import DredditAuthBackend
|
||||
import unittest
|
||||
|
||||
class AuthLogin(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.auth = DredditAuthBackend()
|
||||
|
||||
def testLogin(self):
|
||||
self.assertEquals(self.auth.authenticate(username='invaliduser', password='asdasd'), None)
|
||||
self.assertTrue(self.auth.authenticate(username='testuser', password='testtest'))
|
||||
Reference in New Issue
Block a user