#NEWLINE# def test_read_file( self ) : #NEWLINE# #INDENT# vcs = self . get_vcs ( ) #NEWLINE# vcs . clone ( ) #NEWLINE# vcs . update ( ) #NEWLINE# sha = vcs . run ( [ 'id' , '-i' ] ) . strip ( ) #NEWLINE# assert ( vcs . read_file ( sha , 'FOO' ) == '' ) #NEWLINE# with pytest . raises ( CommandError ) : #NEWLINE# #INDENT# vcs . read_file ( sha , 'doesnotexist' ) #NEWLINE# #UNINDENT# with pytest . raises ( CommandError ) : #NEWLINE# #INDENT# vcs . read_file ( ( 'a' * 40 ) , 'FOO' )