def test_options_validate_if_config_file_exists(self): parser, options, args = common_parse_args(args=[ '--config', self.config_path]) self.assertTrue(common_validate_options_and_args(options, args))
def validate(config_path): parser, options, args = common_parse_args(args=[ '--config', config_path]) common_validate_options_and_args(options, args)
def validate(): parser, options, args = common_parse_args(args=[ '--config', '/tmp/blah/blah/bbpgsql.ini']) common_validate_options_and_args(options, args)
def setUp(self): self.config_path = '/tmp/blah/blah/bbpgsql.ini' args = ['--dry-run', '--config', self.config_path] self.parser, self.options, self.args = common_parse_args(args=args)
def setUp(self): self.parser, self.options, self.args = common_parse_args(args=[])
def validate(): parser, options, args = common_parse_args(args=[ '--config', self.config_path]) self.no_perm = 0 os.chmod(self.config_path, self.no_perm) common_validate_options_and_args(options, args)