コード例 #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
ファイル: test_archive.py プロジェクト: asnet/lib-rar-python
 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)