(self)
Checks that the specified config values are allowed.
Checks that the specified config values are allowed.
Checks that the specified config values are allowed .
def verify_config_is_sane(self):
        '''Checks that the specified config values are allowed.'''
        self.verify_values('transport', ['HTTP', 'HTTPS', 'BOTH'])
        self.verify_values('logreqs', [True, False])
        self.verify_values('debugmode', [True, False])
        self.verify_values('debugtostdout', [True, False])
        self.verify_values('blockhotlinking', [True, False])
        self.verify_values('disable_banner', [True, False])
        self.verify_values('disable_gettor', [True, False])
        self.verify_values('disable_tor_redirection', [True, False])
        self.verify_values('proto', ['http://', 'https://'])
def verify_config_is_sane ( self ) : self . verify_values ( 'transport' , [ 'HTTP' , 'HTTPS' , 'BOTH' ] ) self . verify_values ( 'logreqs' , [ True , False ] ) self . verify_values ( 'debugmode' , [ True , False ] ) self . verify_values ( 'debugtostdout' , [ True , False ] ) self . verify_values ( 'blockhotlinking' , [ True , False ] ) self . verify_values ( 'disable_banner' , [ True , False ] ) self . verify_values ( 'disable_gettor' , [ True , False ] ) self . verify_values ( 'disable_tor_redirection' , [ True , False ] ) self . verify_values ( 'proto' , [ 'http://' , 'https://' ] )