def METHOD_NAME(self, safe_urlread, safe_urlopen, mock_get_all_package_versions):
    mock_get_all_package_versions.return_value = {"foo": "1.0"}
    with self.settings(DEBUG=True):
        send_beacon()
    assert not safe_urlopen.mock_calls