Did I find the right examples for you? yes no

All Samples(54)  |  Call(54)  |  Derive(0)  |  Import(0)

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/import_.py   modoboa(Download)
        dom = Domain.objects.get(name="domain1.com")
        self.assertEqual(dom.quota, 100)
        self.assertTrue(dom.enabled)
        self.assertTrue(admin.is_owner(dom))
        domalias = DomainAlias.objects.get(name="domalias1.com")
        self.assertEqual(domalias.target, dom)
        self.assertTrue(dom.enabled)
        self.assertTrue(admin.is_owner(domalias))
        self.assertEqual(dom.quota, 200)
        self.assertFalse(dom.enabled)
        self.assertTrue(admin.is_owner(dom))
 
    def test_import_domains_with_conflict(self):

src/m/o/modoboa-HEAD/modoboa/extensions/admin/tests/import_.py   modoboa(Download)
        dom = Domain.objects.get(name="domain1.com")
        self.assertEqual(dom.quota, 100)
        self.assertTrue(dom.enabled)
        self.assertTrue(admin.is_owner(dom))
        domalias = DomainAlias.objects.get(name="domalias1.com")
        self.assertEqual(domalias.target, dom)
        self.assertTrue(dom.enabled)
        self.assertTrue(admin.is_owner(domalias))
        self.assertEqual(dom.quota, 200)
        self.assertFalse(dom.enabled)
        self.assertTrue(admin.is_owner(dom))
 
    def test_import_domains_with_conflict(self):

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/domain.py   modoboa(Download)
        al = Alias.objects.get(address="postmaster", domain__name="pouet.com")
        self.assertIn(da.mailbox_set.all()[0], al.mboxes.all())
        self.assertTrue(da.can_access(al))
 
    def test_create_with_template_and_empty_quota(self):
        al = Alias.objects.get(address="postmaster", domain__name="pouet.com")
        self.assertIn(da.mailbox_set.all()[0], al.mboxes.all())
        self.assertTrue(da.can_access(al))
 
    def test_create_using_default_quota(self):
        dom = Domain.objects.get(name="pouet.com")
        self.assertEqual(dom.name, "pouet.com")
        self.assertTrue(dom.enabled)
 
    def test_delete(self):

src/m/o/modoboa-HEAD/modoboa/extensions/admin/tests/domain.py   modoboa(Download)
        al = Alias.objects.get(address="postmaster", domain__name="pouet.com")
        self.assertIn(da.mailbox_set.all()[0], al.mboxes.all())
        self.assertTrue(da.can_access(al))
 
    def test_create_with_template_and_empty_quota(self):
        al = Alias.objects.get(address="postmaster", domain__name="pouet.com")
        self.assertIn(da.mailbox_set.all()[0], al.mboxes.all())
        self.assertTrue(da.can_access(al))
 
    def test_create_using_default_quota(self):
        dom = Domain.objects.get(name="pouet.com")
        self.assertEqual(dom.name, "pouet.com")
        self.assertTrue(dom.enabled)
 
    def test_delete(self):

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/account.py   modoboa(Download)
        self.assertEqual(mb.quota_value.username, "tester@test.com")
        self.assertEqual(account.username, mb.full_address)
        self.assertTrue(account.check_password("toto"))
        self.assertEqual(account.first_name, "Tester")
        self.assertEqual(account.last_name, "Toto")
    def test_set_nul_quota_as_domainadmin(self):
        self.clt.logout()
        self.assertTrue(self.clt.login(username="admin@test.com", password="toto"))
        self._set_quota("user@test.com", 0, 400)
        self.clt.logout()
        self.assertTrue(self.clt.login(username="admin@test2.com", password="toto"))

src/m/o/modoboa-HEAD/modoboa/extensions/admin/tests/account.py   modoboa(Download)
        self.assertEqual(mb.quota_value.username, "tester@test.com")
        self.assertEqual(account.username, mb.full_address)
        self.assertTrue(account.check_password("toto"))
        self.assertEqual(account.first_name, "Tester")
        self.assertEqual(account.last_name, "Toto")
    def test_set_nul_quota_as_domainadmin(self):
        self.clt.logout()
        self.assertTrue(self.clt.login(username="admin@test.com", password="toto"))
        self._set_quota("user@test.com", 0, 400)
        self.clt.logout()
        self.assertTrue(self.clt.login(username="admin@test2.com", password="toto"))

src/m/o/modoboa-1.1.1/modoboa/core/tests.py   modoboa(Download)
        self.clt.logout()
        self.assertTrue(
            self.clt.login(username="user@test.com", password="tutu")
        )
 

src/m/o/modoboa-HEAD/modoboa/core/tests.py   modoboa(Download)
        self.clt.logout()
        self.assertTrue(
            self.clt.login(username="user@test.com", password="tutu")
        )
 

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/user.py   modoboa(Download)
        forward = Alias.objects.get(address='user', domain__name='test.com')
        sadmin = User.objects.get(username='admin')
        self.assertTrue(sadmin.can_access(forward))        
        domadmin = User.objects.get(username='admin@test.com')
        self.assertTrue(domadmin.can_access(forward))

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/password_schemes.py   modoboa(Download)
    def _test_scheme(self, name, startpattern):
        parameters.save_admin('PASSWORD_SCHEME', name, app='core')
        self._create_account()
        account = User.objects.get(username='tester@test.com')
        self.assertTrue(account.password.startswith(startpattern))
        self.assertTrue(account.check_password('toto'))

  1 | 2  Next