A post hook that allows user creation with passwords being set appropriately, and associated tests.

This commit is contained in:
Michael DeHaan
2013-03-24 13:31:46 -04:00
parent aa2915a151
commit 129380e119
4 changed files with 59 additions and 21 deletions

View File

@@ -16,6 +16,10 @@ from lib.main.models import *
class BaseTest(django.test.TestCase):
def setUp(self):
super(BaseTest, self).setUp()
self.object_ctr = 0
def make_user(self, username, password, super_user=False):
django_user = None
if super_user: