From 1a2e96dbfb5fa90a00126775f8a8800ab6b5848c Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Thu, 11 Aug 2022 16:14:15 +0200 Subject: [PATCH] uses `get_success` --- tests/storage/test_roommember.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/storage/test_roommember.py b/tests/storage/test_roommember.py index ffcc50dd0844..dbbd5a793a57 100644 --- a/tests/storage/test_roommember.py +++ b/tests/storage/test_roommember.py @@ -175,13 +175,13 @@ def test_room_is_locally_forgotten(self): ) # first user forgets the room, room is not forgotten - self.assertNoResult(self.store.forget(self.u_alice, self.room)) + self.get_success(self.store.forget(self.u_alice, self.room)) self.assertFalse( self.get_success(self.store.is_locally_forgotten_room(self.room)) ) # second (last local) user forgets the room and the room is forgotten - self.assertNoResult(self.store.forget(self.u_bob, self.room)) + self.get_success(self.store.forget(self.u_bob, self.room)) self.assertTrue( self.get_success(self.store.is_locally_forgotten_room(self.room)) ) @@ -195,7 +195,7 @@ def test_join_locally_forgotten_room(self): # after leaving and forget the room, it is forgotten self.inject_room_member(self.room, self.u_alice, Membership.LEAVE) - self.assertNoResult(self.store.forget(self.u_alice, self.room)) + self.get_success(self.store.forget(self.u_alice, self.room)) self.assertTrue( self.get_success(self.store.is_locally_forgotten_room(self.room)) )