def METHOD_NAME(self) -> None:
    # this should work with either a unicode or a bytes
    self.assertEqual(map_username_to_mxid_localpart("têst"), "t=c3=aast")
    self.assertEqual(map_username_to_mxid_localpart("têst".encode()), "t=c3=aast")