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.

test_remote_billing: Use unordered comparison for deactivation test.

Anders Kaseorg089c8f61c58a
diff --git a/corporate/tests/test_remote_billing.py b/corporate/tests/test_remote_billing.py
index e681bf8bece..501c2f7f316 100644
--- a/corporate/tests/test_remote_billing.py
+++ b/corporate/tests/test_remote_billing.py
@@ -587,8 +587,8 @@ 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.assertEqual(
- list(RemoteRealm.objects.filter(realm_deactivated=True).values_list("host", flat=True)),
+ self.assertCountEqual(
+ RemoteRealm.objects.filter(realm_deactivated=True).values_list("host", flat=True),
["zephyr.testserver", "lear.testserver"],
)