#NEWLINE# def testRaisesIfSrcNotReadable( self ) : #NEWLINE# #INDENT# src_file = 'xyzzy' #NEWLINE# dst_file = 'xyzzy_copy' #NEWLINE# src_contents = 'contents of source file' #NEWLINE# self . filesystem . CreateFile ( src_file , st_mode = ( stat . S_IFREG | 0 ) , contents = src_contents ) #NEWLINE# self . assertTrue ( self . filesystem . Exists ( src_file ) ) #NEWLINE# self . assertRaises ( IOError , self . shutil . copyfile , src_file , dst_file )