Browse Source

[1704] Assert that the lockfile_test directory exists, and is removed

Mukund Sivaraman 13 years ago
parent
commit
8eb4eb3e63
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/bin/bind10/tests/bind10_test.py.in

+ 2 - 0
src/bin/bind10/tests/bind10_test.py.in

@@ -1467,9 +1467,11 @@ class TestFunctions(unittest.TestCase):
     def setUp(self):
         if not os.path.isdir(os.environ["LOCKFILE_TESTPATH"]):
             os.mkdir(os.environ["LOCKFILE_TESTPATH"])
+        self.assertTrue(os.path.isdir(os.environ["LOCKFILE_TESTPATH"]))
 
     def tearDown(self):
         os.rmdir(os.environ["LOCKFILE_TESTPATH"])
+        self.assertFalse(os.path.isdir(os.environ["LOCKFILE_TESTPATH"]))
 
     def test_remove_lock_files(self):
         if "B10_FROM_BUILD" in os.environ: