mirror of
https://github.com/nikdoof/django-testauth.git
synced 2025-12-18 04:09:24 +00:00
11 lines
364 B
Python
11 lines
364 B
Python
from auth import TESTAuthBackend
|
|
import unittest
|
|
|
|
class AuthLogin(unittest.TestCase):
|
|
def setUp(self):
|
|
self.auth = TESTAuthBackend()
|
|
|
|
def testLogin(self):
|
|
self.assertEquals(self.auth.authenticate(username='invaliduser', password='asdasd'), None)
|
|
self.assertTrue(self.auth.authenticate(username='testuser', password='testtest'))
|