'Bind anonymously when the user and password are blank.'

@mock.patch.object(common_ldap.KeystoneLDAPHandler, 'simple_bind_s')
def test_user_api_get_connection_no_user_password(self, mocked_method):

    self.config_fixture.config(group='ldap', user=None, password=None)
    user_api = identity.backends.ldap.UserApi(CONF)
    user_api.get_connection(user=None, password=None)
    self.assertTrue(mocked_method.called)
