def validate_invalid_config( x=list_(of=str_(of='abc123_', max_length=20), min_length=0, max_length=5), y=list_(of=str_(of='abc123_', max_length=20), min_length=6, max_length=10) ): test_config = dict(zip(x, x)) assert not config.validate_config(test_config, y)
def read_config(): paths = [config.DEFAILT_CONFIG_PATH, config.CONFIG_PATH] test_config = config.read_config(paths) assert config.validate_config(test_config, config.REQUIRED_FIELDS)