def test_ok(self, cli, migrated_tenant_dbs): dbs = list(MIGRATED_TENANT_DBS.keys()) dbs.sort() listedTenants = cli.list_tenants() listedTenantsList = listedTenants.split("\n") listedTenantsList.remove('') listedTenantsList.sort() assert dbs == listedTenantsList
def test_ok(self, cli, migrated_tenant_dbs): dbs = list(MIGRATED_TENANT_DBS.keys()) dbs.sort() code, stdout, stderr = cli.list_tenants() assert code == 0 listedTenants = stdout.decode("utf-8") listedTenantsList = listedTenants.split("\n") listedTenantsList.remove("") listedTenantsList.sort() assert dbs == listedTenantsList
def test_no_tenants(self, cli): assert cli.list_tenants() == ""
def test_no_tenants(self, cli): assert not cli.list_tenants()[1], "expected no tenants (empty output)"