(self, conf)
Test that the config params defined are in the conf file
Test that the config params defined are in the conf file
Test that the config params defined are in the conf file
def test_config(self, conf):
        """
        Test that the config params defined are in the conf file
        """
        if self.config is None:
            return True
        if len(self.config.keys()) == 0:
            return True
        else:
            pname = list(self.config.keys())[0]
            if pname not in conf:
                if len(self.config[pname]) == 0:
                    return True
                else:
                    return False
            else:
                for d in self.config[pname]:
                    if d not in conf[pname]:
                        return False
                    else:
                        if conf[pname][d] == '':
                            return False
            return True
def test_config ( self , conf ) : if self . config is None : return True if len ( self . config . keys ( ) ) == 0 : return True else : pname = list ( self . config . keys ( ) ) [ 0 ] if pname not in conf : if len ( self . config [ pname ] ) == 0 : return True else : return False else : for d in self . config [ pname ] : if d not in conf [ pname ] : return False else : if conf [ pname ] [ d ] == '' : return False return True