def METHOD_NAME(self):
    """
    Username and credentials are missing from the ldap config
    but username is provided at context initialization.
    """
    ldap_config = {"connection_url": "ldap://localhost/"}
    with cc_ldap.LDAPConnection(ldap_config,
                                'cn=service_user,ou=example,o=test',
                                '') as connection:
        self.assertIsNone(connection)