Пример #1
0
 def tearDown(self):
   if self.keep:
     print("RESULT WAS KEPT: =================================")
     print()
     print(("cd", self.tempdir))
     print()
     print()
     return
   file_helper.destroy_dir_recursive(self.tempdir)
Пример #2
0
  def testFileHelperDir(self):
    dir = opj(self.tempdir,"testdir")

    # create dir:
    file_helper.create_dir(dir)

    # test if it can be destroyed:
    file_helper.destroy_dir_recursive(dir)
    self.assertEqual(file_helper.dir_exists(dir),False)
Пример #3
0
    def testFileHelperDir(self):
        dir = opj(self.tempdir, "testdir")

        # create dir:
        file_helper.create_dir(dir)

        # test if it can be destroyed:
        file_helper.destroy_dir_recursive(dir)
        self.assertEqual(file_helper.dir_exists(dir), False)
Пример #4
0
 def tearDown(self):
   if self.keep:
     print "RESULT WAS KEPT: ================================="
     print
     print "cd", self.tempdir
     print
     print
     return
   file_helper.destroy_dir_recursive(self.tempdir)
Пример #5
0
 def tearDown(self):
   if self.keep or os.name == 'nt': #Windows Complains when removing files during Unit Test
     print "RESULT WAS KEPT: ================================="
     print
     print "cd", self.tempdir
     print
     print
     return
   file_helper.destroy_dir_recursive(self.tempdir)
Пример #6
0
 def tearDown(self):
     if self.keep:
         print "RESULT WAS KEPT: ================================="
         print
         print "cd", self.tempdir
         print
         print
         return
     file_helper.destroy_dir_recursive(self.tempdir)
Пример #7
0
 def tearDown(self):
   file_helper.destroy_dir_recursive(self.tempdir)
Пример #8
0
 def tearDown(self):
     file_helper.destroy_dir_recursive(self.tempdir)