'Checks if the currently set koji configuration is valid
:return: True or False'

def is_config_valid(self):

    koji_config_ok = True
    if (not os.path.isfile(self.config)):
        logging.error('Koji    config    "%s"    is    not    a    regular    file', self.config)
        koji_config_ok = False
    if (not os.access(self.config, os.R_OK)):
        logging.error('Koji    config    "%s"    is    not    readable', self.config)
        koji_config_ok = False
    config = ConfigParser.ConfigParser()
    config.read(self.config)
    basename = os.path.basename(self.command)
    if (not config.has_section(basename)):
        logging.error('Koji    configuration    file    "%s"    does    not    have    a    section    "%s",    named    after    the    base    name    of    the    currently    set    koji    command    "%s"', self.config, basename, self.command)
        koji_config_ok = False
    return koji_config_ok
