tests: Tweak assertion for streams.

This commit is contained in:
Steve Howell 2021-12-11 13:41:11 +00:00 committed by Steve Howell
parent 6be3fbde1d
commit 7df86f3614
1 changed files with 2 additions and 2 deletions

View File

@ -1448,8 +1448,8 @@ class SingleUserExportTest(ZulipTestCase):
exported_recipient_type_id = self.get_set(user["zerver_recipient"], "type_id")
self.assertIn(cordelia.id, exported_recipient_type_id)
exported_stream_id = self.get_set(user["zerver_stream"], "id")
self.assertIn(list(exported_stream_id)[0], exported_recipient_type_id)
streams = {rec["name"] for rec in user["zerver_stream"]}
self.assertEqual(streams, {"Verona"})
exported_recipient_id = self.get_set(user["zerver_recipient"], "id")
exported_subscription_recipient = self.get_set(user["zerver_subscription"], "recipient")