def test_tenant_schema_is_created(self):
        tenant = get_tenant_model()(schema_name='test')
        tenant.save()

        domain = get_tenant_domain_model()(tenant=tenant, domain='something.test.com')
        domain.save()

        self.assertTrue(schema_exists(tenant.schema_name))

        self.created = [domain, tenant]
When saving a tenant, it's schema should be created.
dataset/ETHPy150Open tomturner/django-tenants/django_tenants/tests/test_tenants.py/TenantDataAndSettingsTest.test_tenant_schema_is_created