def bzr_wc_sudo():
 test = 'bzr_wc_sudo'
 wt = ('%s-test-%s' % (DIR, test))
 puts(magenta(('Executing test: %s' % test)))
 from fabric.api import sudo
 from fabtools.files import group, is_dir, owner
 from fabtools import require
 assert (not is_dir(wt))
 require.bazaar.working_copy(REMOTE_URL, wt, use_sudo=True)
 assert_wc_exists(wt)
 assert (owner(wt) == 'root')
 assert (group(wt) == 'root')

def bzr_wc_sudo ( ) : test = 'bzr_wc_sudo' wt = ( '%s-test-%s' % ( DIR , test ) ) puts ( magenta ( ( 'Executing test: %s' % test ) ) ) from fabric . api import sudo from fabtools . files import group , is_dir , owner from fabtools import require assert ( not is_dir ( wt ) ) require . bazaar . working_copy ( REMOTE_URL , wt , use_sudo = True ) assert_wc_exists ( wt ) assert ( owner ( wt ) == 'root' ) assert ( group ( wt ) == 'root' )
test working copy with sudo .