def test_init_validate_definitions_version_false(self):
    with open(config.CLOUDIFY_CONFIG_PATH) as f:
        conf = yaml.safe_load(f.read())
    with open(config.CLOUDIFY_CONFIG_PATH, 'w') as f:
        conf['validate_definitions_version'] = False
        f.write(yaml.safe_dump(conf))
    self.invoke('cfy init {0}/local/blueprint_validate_definitions_version.yaml'.format(BLUEPRINTS_DIR))
def test_init_validate_definitions_version_false(self):
    with open(config.CLOUDIFY_CONFIG_PATH) as f:
        conf = yaml.safe_load(f.read())
    with open(config.CLOUDIFY_CONFIG_PATH, 'w') as f:
        conf['validate_definitions_version'] = False
        f.write(yaml.safe_dump(conf))
    self.invoke('cfy init {0}/local/blueprint_validate_definitions_version.yaml'.format(BLUEPRINTS_DIR))