def METHOD_NAME(
    self, mocker, cobbler_api, test_settings, tls_cafile, tls_cert, tls_key
):
    # Arrange
    mocker.patch.object(cobbler_api, "settings", return_value=test_settings)
    test_settings.ldap_tls = True
    test_settings.ldap_tls_cacertdir = None
    test_settings.ldap_tls_cacertfile = tls_cafile
    test_settings.ldap_tls_certfile = tls_cert
    test_settings.ldap_tls_keyfile = tls_key
    # Act
    result = ldap.authenticate(cobbler_api, "test", "test")
    # Assert
    assert not result