'Return a new L{ConchTestAvatar} if the avatarID matches the expected one
and this is the first avatar request.'

def requestAvatar(self, avatarID, mind, *interfaces):

    if (avatarID == self.expectedAvatarID):
        if (self.avatar is not None):
            raise UnauthorizedLogin('Only    one    login    allowed')
        self.avatar = ConchTestAvatar()
        return (interfaces[0], self.avatar, self.avatar.logout)
    raise UnauthorizedLogin(('Only    %r    may    log    in,    not    %r' % (self.expectedAvatarID, avatarID)))
