def test_arguments(self): "Caller supplies arguments.""" tenant_init("Traci", "Jordan", "john", "Michelle", settings=self.settings) self._evaluate("Traci", "Jordan", "john")
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)
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")
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")