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

Method test_list_folders

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

Source from the content-addressed store, hash-verified

1339 self.assertEqual(os.listdir(self._path), ['.mh_sequences'])
1340
1341 def test_list_folders(self):
1342 # List folders
1343 self._box.add_folder('one')
1344 self._box.add_folder('two')
1345 self._box.add_folder('three')
1346 self.assertEqual(len(self._box.list_folders()), 3)
1347 self.assertEqual(set(self._box.list_folders()),
1348 set(('one', 'two', 'three')))
1349
1350 def test_get_folder(self):
1351 # 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