Пример #1
0
 def setUp(self):
     self.change = diff_validator.Change()
     self.files = ["file1.cnf", "file2.cnf"]
     with open(self.files[0], "w") as f:
         f.write("")
     with open(self.files[1], "w") as f:
         f.write("")
Пример #2
0
 def setUp(self):
     prefix = temp_dir_prefix(__name__, self, 'setUp')
     self.tmpdir = tempfile.TemporaryDirectory(prefix=prefix)
     self.change = diff_validator.Change()
     self.files = [os.path.join(self.tmpdir.name, "file1.cnf"),
                   os.path.join(self.tmpdir.name, "file2.cnf")]
     with open(self.files[0], "w") as f:
         f.write("")
     with open(self.files[1], "w") as f:
         f.write("")