Check test directory is cleaned up by Python tests.
[gd/samba/.git] / source4 / scripting / python / samba / tests / __init__.py
index e29b4a87d5295b018dba7edbdd7b1b553da6c9a2..d827bfa0044926e4c6e9d56052392fab03e078b4 100644 (file)
@@ -47,6 +47,7 @@ class TestCaseInTempDir(unittest.TestCase):
 
     def tearDown(self):
         super(TestCaseInTempDir, self).tearDown()
 
     def tearDown(self):
         super(TestCaseInTempDir, self).tearDown()
+        self.assertEquals([], os.listdir(self.tempdir))
         os.rmdir(self.tempdir)
 
 
         os.rmdir(self.tempdir)