MCPcopy Index your code
hub / github.com/python/cpython / test_list_folders

Method test_list_folders

Lib/test/test_mailbox.py:713–720  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

711 self.assertTrue(os.path.isdir(path), f"Not a directory: {path!r}")
712
713 def test_list_folders(self):
714 # List folders
715 self._box.add_folder('one')
716 self._box.add_folder('two')
717 self._box.add_folder('three')
718 self.assertEqual(len(self._box.list_folders()), 3)
719 self.assertEqual(set(self._box.list_folders()),
720 set(('one', 'two', 'three')))
721
722 def test_get_folder(self):
723 # Open folders

Callers

nothing calls this directly

Calls 4

setFunction · 0.85
add_folderMethod · 0.45
assertEqualMethod · 0.45
list_foldersMethod · 0.45

Tested by

no test coverage detected