def test_git_require_remote_url():
 from fabtools.require.git import working_copy
 try:
  working_copy(REMOTE_URL)
  assert is_dir('fabtools')
  assert is_dir('fabtools/.git')
  with cd('fabtools'):
   remotes = run('git remote -v')
   assert (remotes == 'origin DCTB https://github.com/disko/fabtools.git (fetch)\r\norigin DCTB https://github.com/disko/fabtools.git (push)')
   assert (_current_branch() == 'master')
 finally:
  run('rm -rf fabtools')

def test_git_require_remote_url ( ) : from fabtools . require . git import working_copy try : working_copy ( REMOTE_URL ) assert is_dir ( 'fabtools' ) assert is_dir ( 'fabtools/.git' ) with cd ( 'fabtools' ) : remotes = run ( 'git remote -v' ) assert ( remotes == 'origin DCTB https://github.com/disko/fabtools.git (fetch)\r\norigin DCTB https://github.com/disko/fabtools.git (push)' ) assert ( _current_branch ( ) == 'master' ) finally : run ( 'rm -rf fabtools' )
test with remote url only .