def test_conflicting_path(tmpdir, mocked_aws_cf_simple):
 with tmpdir.as_cwd():
  tmpdir.join('config.yaml').write(mocked_aws_cf_simple)
  assert (main(['create']) == 0)
  assert (main(['create']) == 1)

def test_conflicting_path ( tmpdir , mocked_aws_cf_simple ) : with tmpdir . as_cwd ( ) : tmpdir . join ( 'config.yaml' ) . write ( mocked_aws_cf_simple ) assert ( main ( [ 'create' ] ) == 0 ) assert ( main ( [ 'create' ] ) == 1 )
ensure default cluster info path is never overwritten by launching successive clusters .