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

Method _check_basics

Lib/test/test_mailbox.py:705–711  ·  view source on GitHub ↗
(self, factory=None)

Source from the content-addressed store, hash-verified

703 self.assertEqual(list(self._box.iterkeys()), [])
704
705 def _check_basics(self, factory=None):
706 # (Used by test_open_new() and test_open_existing().)
707 self.assertEqual(self._box._path, os.path.abspath(self._path))
708 self.assertEqual(self._box._factory, factory)
709 for subdir in '', 'tmp', 'new', 'cur':
710 path = os.path.join(self._path, subdir)
711 self.assertTrue(os.path.isdir(path), f"Not a directory: {path!r}")
712
713 def test_list_folders(self):
714 # List folders

Callers 2

test_initialize_newMethod · 0.95

Calls 5

assertTrueMethod · 0.80
assertEqualMethod · 0.45
abspathMethod · 0.45
joinMethod · 0.45
isdirMethod · 0.45

Tested by

no test coverage detected