'Do a find() on the client and return \'primary\' or \'secondary\'
depending on which the client used.'

def read_from_which_kind(self, client):

    address = self.read_from_which_host(client)
    if (address == client.primary):
        return 'primary'
    elif (address in client.secondaries):
        return 'secondary'
    else:
        self.fail(('Cursor    used    address    %s,    expected    either    primary    %s    or    secondaries    %s' % (address, client.primary, client.secondaries)))
