From cf80028faf1096ea6ff37207e5740b3315bb9c54 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 18 Jan 2017 09:59:48 +0100 Subject: [PATCH] DRY. see #1007 --- modoboa/admin/tests/test_domain.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modoboa/admin/tests/test_domain.py b/modoboa/admin/tests/test_domain.py index f7f4b886f..69dc8c775 100644 --- a/modoboa/admin/tests/test_domain.py +++ b/modoboa/admin/tests/test_domain.py @@ -101,7 +101,8 @@ class DomainTestCase(ModoTestCase): def test_create_with_template_and_custom_password(self): """Test creation of a domain with a template and custom password.""" - self.set_global_parameter("default_password", "Toto1234", app="core") + password = "Toto1000" + self.set_global_parameter("default_password", password, app="core") values = { "name": "pouet.com", "quota": 0, "create_dom_admin": True, "dom_admin_username": "toto", "create_aliases": True, @@ -121,7 +122,7 @@ class DomainTestCase(ModoTestCase): ) self.assertTrue(da.can_access(al)) self.assertTrue( - self.client.login(username="toto@pouet.com", password="Toto1234")) + self.client.login(username="toto@pouet.com", password=password)) def test_create_using_default_quota(self): self.set_global_parameter("default_domain_quota", 50)