#NEWLINE# @ pytest . mark . parametrize ( 'test_case' , good_cases ) #NEWLINE# def test_files_sizes( self , test_case ) : #NEWLINE# #INDENT# '\n        Ensures that the files created are the correct size.\n\n        ' #NEWLINE# test_dir = file_utilities . create_test_directory ( test_case ) #NEWLINE# try : #NEWLINE# #INDENT# for i in test_case : #NEWLINE# #INDENT# if isinstance ( i , tuple ) : #NEWLINE# #INDENT# sys . stdout . write ( ( 'checking size of %s\n' % ( i [ 0 ] , ) ) ) #NEWLINE# file_size = os . stat ( os . path . join ( test_dir , i [ 0 ] ) ) . st_size #NEWLINE# assert ( file_size == i [ 1 ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# shutil . rmtree ( test_dir )