Did I find the right examples for you? yes no

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

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/account.py   modoboa(Download)
        )
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.newaccount"),
            values
        )
        values["username"] = "pouet@test.com"
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.editaccount",
                    args=[account.id]),
            values
        )
        mb = Mailbox.objects.get(pk=mb.id)
        self.assertEqual(mb.full_address, "pouet@test.com")
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.delaccount",
        }
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.editaccount",
                    args=[account.id]),
            values, status=expected_status
    def test_domain_admins(self):
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.editaccount",
                    args=[self.user.id]),
            self.values

src/m/o/modoboa-HEAD/modoboa/extensions/admin/tests/account.py   modoboa(Download)
        )
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.newaccount"),
            values
        )
        values["username"] = "pouet@test.com"
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.editaccount",
                    args=[account.id]),
            values
        )
        mb = Mailbox.objects.get(pk=mb.id)
        self.assertEqual(mb.full_address, "pouet@test.com")
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.delaccount",
        }
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.editaccount",
                    args=[account.id]),
            values, status=expected_status
    def test_domain_admins(self):
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.editaccount",
                    args=[self.user.id]),
            self.values

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/domain.py   modoboa(Download)
            "stepid": 'step2'
        }
        self.ajax_post(reverse("modoboa.extensions.admin.views.domain.newdomain"), values)
        dom = Domain.objects.get(name="pouet.com")
        self.assertEqual(dom.name, "pouet.com")
        }
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.newdomain"),
            values
        )
        }
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.newdomain"),
            values
        )
        }
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.newdomain"),
            values
        )
        dom = Domain.objects.get(name="test.com")
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.editdomain",
                    args=[dom.id]), 
            values

src/m/o/modoboa-HEAD/modoboa/extensions/admin/tests/domain.py   modoboa(Download)
            "stepid": 'step2'
        }
        self.ajax_post(reverse("modoboa.extensions.admin.views.domain.newdomain"), values)
        dom = Domain.objects.get(name="pouet.com")
        self.assertEqual(dom.name, "pouet.com")
        }
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.newdomain"),
            values
        )
        }
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.newdomain"),
            values
        )
        }
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.newdomain"),
            values
        )
        dom = Domain.objects.get(name="test.com")
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.editdomain",
                    args=[dom.id]), 
            values

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/alias.py   modoboa(Download)
        )
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.editaccount",
                    args=[user.id]),
            values
        del values["aliases_1"]
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.editaccount",
                    args=[user.id]),
            values
                      enabled=True)
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.alias.newdlist"), values
        )
        user = User.objects.get(username="user@test.com")
        del values["recipients_1"]
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.alias.editalias",
                    args=[dlist.id]),
            values
        )
        self.assertEqual(dlist.get_recipients_count(), 2)
 
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.alias.delalias") + "?selection=%d" \

src/m/o/modoboa-HEAD/modoboa/extensions/admin/tests/alias.py   modoboa(Download)
        )
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.editaccount",
                    args=[user.id]),
            values
        del values["aliases_1"]
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.identity.editaccount",
                    args=[user.id]),
            values
                      enabled=True)
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.alias.newdlist"), values
        )
        user = User.objects.get(username="user@test.com")
        del values["recipients_1"]
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.alias.editalias",
                    args=[dlist.id]),
            values
        )
        self.assertEqual(dlist.get_recipients_count(), 2)
 
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.alias.delalias") + "?selection=%d" \

src/m/o/modoboa-1.1.1/modoboa/core/tests.py   modoboa(Download)
        * A normal user changes his password
        """
        self.ajax_post(reverse("modoboa.core.views.user.profile"),
                       {"oldpassword": "password",
                        "newpassword": "titi", "confirmation": "titi"})
 
        self.ajax_post(
            reverse("modoboa.core.views.user.profile"),
            {"oldpassword": "toto",
             "newpassword": "tutu", "confirmation": "tutu"}

src/m/o/modoboa-HEAD/modoboa/core/tests.py   modoboa(Download)
        * A normal user changes his password
        """
        self.ajax_post(reverse("modoboa.core.views.user.profile"),
                       {"oldpassword": "password",
                        "newpassword": "titi", "confirmation": "titi"})
 
        self.ajax_post(
            reverse("modoboa.core.views.user.profile"),
            {"oldpassword": "toto",
             "newpassword": "tutu", "confirmation": "tutu"}

src/m/o/modoboa-1.1.1/modoboa/extensions/admin/tests/domain_alias.py   modoboa(Download)
                      aliases="domalias.net", aliases_1="domalias.com")
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.editdomain",
                    args=[dom.id]),
            values
        del values["aliases_1"]
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.editdomain",
                    args=[dom.id]),
            values

src/m/o/modoboa-HEAD/modoboa/extensions/admin/tests/domain_alias.py   modoboa(Download)
                      aliases="domalias.net", aliases_1="domalias.com")
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.editdomain",
                    args=[dom.id]),
            values
        del values["aliases_1"]
        self.ajax_post(
            reverse("modoboa.extensions.admin.views.domain.editdomain",
                    args=[dom.id]),
            values

  1 | 2  Next