def bzr_wc_target_exists_no_update():
 test = 'bzr_wc_target_exists_no_update'
 wt = ('%s-test-%s' % (DIR, test))
 puts(magenta(('Executing test: %s' % test)))
 from fabric.api import run
 from fabtools.files import is_dir
 from fabtools import require
 assert (not is_dir(wt))
 require.bazaar.working_copy(REMOTE_URL, wt, version='2')
 require.bazaar.working_copy(REMOTE_URL, wt, update=False)
 assert_wc_exists(wt)
 assert (run(('bzr revno %s' % wt)) == '2')

def bzr_wc_target_exists_no_update ( ) : test = 'bzr_wc_target_exists_no_update' wt = ( '%s-test-%s' % ( DIR , test ) ) puts ( magenta ( ( 'Executing test: %s' % test ) ) ) from fabric . api import run from fabtools . files import is_dir from fabtools import require assert ( not is_dir ( wt ) ) require . bazaar . working_copy ( REMOTE_URL , wt , version = '2' ) require . bazaar . working_copy ( REMOTE_URL , wt , update = False ) assert_wc_exists ( wt ) assert ( run ( ( 'bzr revno %s' % wt ) ) == '2' )
test creating a working copy when target already exists and updating was not requested .