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

Method _check_basics

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

Source from the content-addressed store, hash-verified

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

Callers 2

test_initialize_newMethod · 0.95

Calls 4

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

Tested by

no test coverage detected