#NEWLINE# def test_private_ssh_format( self ) : #NEWLINE# #INDENT# ( repo_dir , git_repo ) = self . create_git_repo ( ) #NEWLINE# git_checkout_dest = os . path . join ( repo_dir . TMP_DIR , 'private_ssh_repo' ) #NEWLINE# git_repo = create_repo ( ** { #NEWLINE# #INDENT# 'url' : ( 'git+ssh://github.com:' + git_checkout_dest ) , #NEWLINE# 'cwd' : os . path . dirname ( repo_dir ) , #NEWLINE# 'name' : os . path . basename ( os . path . normpath ( repo_dir ) ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# with self . assertRaisesRegexp ( exc . VCSPullException , 'is malformatted' ) : #NEWLINE# #INDENT# git_repo . obtain ( quiet = True )