def setUp(self): """ Set initial counts and values, and initializes the setup of the test files. """ self.cases = {} self.tmp_path = mkdtemp() + "/" self.my_args = get_args() self.my_refs = get_refs(self.my_args) self.my_regex = get_regexs() self.prexisting_file_count = len( get_files(self.my_refs.keys(), self.my_args)) for key in self.my_refs: self.create_test_files(self.tmp_path, key, self.my_refs.get(key))
def setUp(self): """ Set initial counts and values, and initializes the setup of the test files. """ self.cases = {} self.tmp_path = mkdtemp() + "/" self.my_args = get_args() self.my_refs = get_refs(self.my_args) self.my_regex = get_regexs() self.prexisting_file_count = len( get_files(self.my_refs.keys(), self.my_args)) for key in self.my_refs: self.create_test_files(self.tmp_path, key, self.my_refs.get(key))