def setUpClass(cls): # Set up the directory and add the good file from opan.test.utils import setUpTestDir setUpTestDir(cls.testdir) # Write the file with open(cls.file_name, 'w') as f: f.write(cls.file_text_good)
def setUpClass(cls): # Set up the directory and add the good file from opan.test.utils import setUpTestDir setUpTestDir(cls.testdir) # Write the file with open(cls.file_name, 'w') as f: f.write(cls.file_text_good)
def setUpClass(cls): # Set up the directory and add munged files from opan.test.utils import setUpTestDir setUpTestDir(cls.testdir) # Write the files for bname in cls.bad_file_data_substs.keys(): with open(cls.file_name + bname, 'w') as f: f.write(cls.file_text_good .replace(*cls.bad_file_data_substs[bname]))
def setUpClass(cls): # Set up the directory and add munged files from opan.test.utils import setUpTestDir setUpTestDir(cls.testdir) # Write the files for bname in cls.bad_file_data_substs.keys(): with open(cls.file_name + bname, 'w') as f: f.write( cls.file_text_good.replace( *cls.bad_file_data_substs[bname]))