Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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]))
Esempio n. 4
0
    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]))