async def METHOD_NAME(self, dm=False):
    """
    Assert that the bot pins a message.
    """
    request = await self.get_request()
    channel = TEST_DMCHANNEL_ID if dm else TEST_CHANNEL_ID
    assert request.method == "PUT"
    assert request.url.endswith(f"/channels/{channel}/pins/{MESSAGE_ID}")