Exemple #1
0
 def setUp (self):
   self.filenames = ["%d" % i for i in range (5)]
   utils.mktemp ()
   for filename in self.filenames:
     open (os.path.join (utils.TEST_ROOT, filename), "w").close ()
   os.mkdir (os.path.join (utils.TEST_ROOT, "d"))
   for filename in self.filenames:
     open (os.path.join (utils.TEST_ROOT, "d", filename), "w").close ()
   os.mkdir (os.path.join (utils.TEST_ROOT, "empty"))
 def setUp(self):
     self.filenames = ["%d" % i for i in range(5)]
     utils.mktemp()
     for filename in self.filenames:
         open(os.path.join(utils.TEST_ROOT, filename), "w").close()
     os.mkdir(os.path.join(utils.TEST_ROOT, "d"))
     for filename in self.filenames:
         open(os.path.join(utils.TEST_ROOT, "d", filename), "w").close()
     os.mkdir(os.path.join(utils.TEST_ROOT, "empty"))
 def setUp(self):
     utils.mktemp()
     for filename in self.filenames:
         with open(os.path.join(utils.TEST_ROOT, filename), "w"):
             pass
Exemple #4
0
 def setUp (self):
   utils.mktemp ()
   for filename in self.filenames:
     with open (os.path.join (utils.TEST_ROOT, filename), "w"):
       pass