def METHOD_NAME(mock_read_text: mock.Mock) -> None:
    class FakeDistribution(BaseDistribution):
        pass
    dist = FakeDistribution()
    direct_url = dist.direct_url
    assert direct_url is not None
    mock_read_text.assert_called_once_with(DIRECT_URL_METADATA_NAME)
    assert direct_url.url == "https://e.c/p.tgz"
    assert isinstance(direct_url.info, ArchiveInfo)