diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-02-17 17:06:52 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-02-17 17:06:52 +0100 |
commit | e300e79b205940a7c34f9caee1024bd0f4f2b49f (patch) | |
tree | efe943140e6807c3d9b7889def1d5d5e4d19c1aa /ishtar_common/tests.py | |
parent | e8b34109211c0fa5b580e0bd6112f82fa60a360c (diff) | |
download | Ishtar-e300e79b205940a7c34f9caee1024bd0f4f2b49f.tar.bz2 Ishtar-e300e79b205940a7c34f9caee1024bd0f4f2b49f.zip |
Fix password initialization on user creation (refs #3478)
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r-- | ishtar_common/tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index 8953e3c1b..42bb1860e 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -319,6 +319,15 @@ class AdminGenTypeTest(TestCase): for model in self.models_with_data: self.assertTrue(str(model.objects.all()[0])) + def test_user_creation(self): + url = '/admin/auth/user/add/' + password = 'ishtar is the queen' + response = self.client.post( + url, {'username': 'test', 'password1': password, + 'password2': password}) + self.assertEqual(response.status_code, 302) + self.assertTrue(self.client.login(username='test', password=password)) + class MergeTest(TestCase): def setUp(self): |