Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

billing test: Use a set check vs. assertCountEqual.

Steve Howell9acdfa82adc3
diff --git a/corporate/tests/test_remote_billing.py b/corporate/tests/test_remote_billing.py
index 46bc15de820..2332a4dec08 100644
--- a/corporate/tests/test_remote_billing.py
+++ b/corporate/tests/test_remote_billing.py
@@ -812,9 +812,9 @@ class RemoteBillingAuthenticationTest(RemoteRealmBillingTestCase):
self.server.refresh_from_db()
self.assertEqual(self.server.plan_type, RemoteZulipServer.PLAN_TYPE_SELF_MANAGED)
# Check if zephyr and lear were deactivated
- self.assertCountEqual(
- RemoteRealm.objects.filter(realm_deactivated=True).values_list("host", flat=True),
- ["zephyr.testserver", "lear.testserver"],
+ self.assertEqual(
+ set(RemoteRealm.objects.filter(realm_deactivated=True).values_list("host", flat=True)),
+ {"zephyr.testserver", "lear.testserver"},
)
# Check complimentary access CustomerPlan exists for the one non-deactivated