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

Method test_listdrives

Lib/test/test_os.py:2993–2999  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2991 self.known_mounts = {l for l in lines if l[1:3] == ':\\'}
2992
2993 def test_listdrives(self):
2994 drives = os.listdrives()
2995 self.assertIsInstance(drives, list)
2996 self.assertSetEqual(
2997 self.known_drives,
2998 self.known_drives & set(drives),
2999 )
3000
3001 def test_listvolumes(self):
3002 volumes = os.listvolumes()

Callers

nothing calls this directly

Calls 3

setFunction · 0.85
assertIsInstanceMethod · 0.80
assertSetEqualMethod · 0.80

Tested by

no test coverage detected