Esempio n. 1
0
    def test_arguments(self):
        "Caller supplies arguments."""

        tenant_init("Traci", "Jordan", "john", "Michelle",
                    settings=self.settings)

        self._evaluate("Traci", "Jordan", "john")
Esempio n. 2
0
    def test_happy(self):
        "Create tenant and tenant_admin."""

        tenant_init(self.DEFAULT_TENANT, self.DEFAULT_TENANT_OWNER,
                    self.DEFAULT_ADMIN, self.DEFAULT_ADMIN_PASSWORD,
                    settings=self.settings)
        self._evaluate(self.DEFAULT_TENANT, self.DEFAULT_TENANT_OWNER,
                       self.DEFAULT_ADMIN)
Esempio n. 3
0
    def test_arguments_exists(self):
        """Caller supplies arguments, tenant and admin already exist, use
        positional parameter passing."""

        Tenant.objects.create(name="bob", owner="bahb")
        get_user_model().objects.create_user(username="******", password="******")

        tenant_init("bob", "bahb", "bahhb", "baab", settings=self.settings)
        self._evaluate("bob", "bahb", "bahhb")
Esempio n. 4
0
    def test_arguments_exists(self):
        """Caller supplies arguments, tenant and admin already exist, use
        positional parameter passing."""

        Tenant.objects.create(name="bob", owner="bahb")
        get_user_model().objects.create_user(username="******", password='******')

        tenant_init("bob", "bahb", "bahhb", "baab", settings=self.settings)
        self._evaluate("bob", "bahb", "bahhb")