#NEWLINE# def test_svn_commit( svn_server , tmpdir ) : #NEWLINE# #INDENT# foo_url = svn_server . create_repo ( 'foo' ) #NEWLINE# svn_server . commit_file ( 'foo' , 'README.txt' , 'this is a readme\n' ) #NEWLINE# work = tmpdir . mkdir ( 'work' ) #NEWLINE# svn = qisrc . svn . Svn ( foo_url . strpath ) #NEWLINE# svn . call ( 'checkout' , foo_url ) #NEWLINE# foo = work . join ( 'foo' ) #NEWLINE# readme = foo . join ( 'README.txt' ) #NEWLINE# assert ( readme . read ( ) == 'this is a readme\n' )