@@ -1013,7 +1013,7 @@ def test_can_attach_media_to_profile_update(self) -> None:
10131013 )
10141014 assert restrictions is not None , str (restrictions )
10151015 assert restrictions .event_id is None
1016- assert restrictions .profile_user_id == UserID . from_string ( self .user )
1016+ assert restrictions .profile_user_id == self .user
10171017
10181018 def test_attaching_nonexistent_local_media_to_profile_fails (self ) -> None :
10191019 """
@@ -1274,7 +1274,7 @@ def test_profile_update_with_media_is_copied_and_attached_to_member_events(
12741274 media_info = self .get_success (self .store .get_local_media (mxc_uri .media_id ))
12751275 assert media_info is not None
12761276 assert media_info .attachments is not None
1277- assert media_info .attachments .profile_user_id == UserID . from_string ( self .user )
1277+ assert media_info .attachments .profile_user_id == self .user
12781278
12791279 # Check the media was copied and attached to a member event
12801280 events = self .get_success (
@@ -1457,7 +1457,7 @@ def test_profile_update_with_media_is_copied_and_attached_to_member_events(
14571457 media_info = self .get_success (self .store .get_local_media (mxc_uri .media_id ))
14581458 assert media_info is not None
14591459 assert media_info .attachments is not None
1460- assert media_info .attachments .profile_user_id == UserID . from_string ( self .user )
1460+ assert media_info .attachments .profile_user_id == self .user
14611461
14621462 # Check the media was copied and attached to a member event
14631463 events = self .get_success (
0 commit comments