def bzr_wc_target_exists_plain_no_force():
 test = 'bzr_wc_target_exists_plain_no_force'
 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
 run(('mkdir %s' % wt))
 assert (not is_dir(path.join(wt, '.bzr')))
 try:
  require.bazaar.working_copy(REMOTE_URL, wt)
 except SystemExit:
  pass
 else:
  assert False, "working_copy didn't raise exception"
 assert (not is_dir(path.join(wt, '.bzr')))

def bzr_wc_target_exists_plain_no_force ( ) : test = 'bzr_wc_target_exists_plain_no_force' 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 run ( ( 'mkdir %s' % wt ) ) assert ( not is_dir ( path . join ( wt , '.bzr' ) ) ) try : require . bazaar . working_copy ( REMOTE_URL , wt ) except SystemExit : pass else : assert False , "working_copy didn't raise exception" assert ( not is_dir ( path . join ( wt , '.bzr' ) ) )
test working copy when target is an already existing plain directory and force was not specified .