July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.
import unittest import glob import os PATH = "extentest" class FileHandling(unittest.TestCase): def setUp(self): self.path = PATH self.file_names = ["file.ext123", "file.ext123", "file.ext123", "file.ext123", "file.ext123", "file.ext223","file.ext223"] os.mkdir(self.path) for fn in self.file_names: f = open(self.path+fn, "w") f.close() if __name__ == "__main__": unittest.main()
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.