diff options
author | Christian Franke <nobody@nowhere.ws> | 2012-01-05 01:32:41 +0100 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2012-01-05 01:32:41 +0100 |
commit | af48fab1b031b3474f24b78e5bf59b14c8346ea8 (patch) | |
tree | 03e314165b8c660ec9de0094e0d24df64620f261 /sublab_project/accounts/tests.py | |
parent | 7e960881ae6cbcd709538dcd73e4fd89e33507d3 (diff) |
make ldap authentication work
authorization is still missing -> people can login but can't really
do anything. It seems like we should add a group for members to ldap
and authorize the matching django group to be allowed to edit news,
projects, and so on.
Maybe there is a better solution, which I did not see?
Also, there is probably a better code for the populate_user handler
I placed in accounts/models.py
Diffstat (limited to 'sublab_project/accounts/tests.py')
-rw-r--r-- | sublab_project/accounts/tests.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sublab_project/accounts/tests.py b/sublab_project/accounts/tests.py new file mode 100644 index 0000000..501deb7 --- /dev/null +++ b/sublab_project/accounts/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) |