def test_empty_dir(self):
     dirManager = DirManager()
     tmpdir = tempfile.mkdtemp()
     open(os.path.join(tmpdir,"test"), "w").close()
     open(os.path.join(tmpdir,"other"), "w").close()
     dirManager.add_directory(tmpdir)
     self.assertTrue(isinstance(dirManager.list_available(), dict))
Beispiel #2
0
 def test_empty_dir(self):
     dirManager = DirManager()
     tmpdir = tempfile.mkdtemp()
     open(os.path.join(tmpdir, "test"), "w").close()
     open(os.path.join(tmpdir, "other"), "w").close()
     dirManager.add_directory(tmpdir)
     self.assertTrue(isinstance(dirManager.list_available(), dict))
 def test_available(self):
     dirManager = DirManager()
     self.assertTrue(isinstance(dirManager.list_available(), dict))
Beispiel #4
0
 def test_available(self):
     dirManager = DirManager()
     self.assertTrue(isinstance(dirManager.list_available(), dict))