MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_list_folders

Method test_list_folders

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

Source from the content-addressed store, hash-verified

1324 self.assertEqual(os.listdir(self._path), ['.mh_sequences'])
1325
1326 def test_list_folders(self):
1327 # List folders
1328 self._box.add_folder('one')
1329 self._box.add_folder('two')
1330 self._box.add_folder('three')
1331 self.assertEqual(len(self._box.list_folders()), 3)
1332 self.assertEqual(set(self._box.list_folders()),
1333 set(('one', 'two', 'three')))
1334
1335 def test_get_folder(self):
1336 # Open folders

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected