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

Method test_directory

Lib/test/test_stat.py:172–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

170
171 @os_helper.skip_unless_working_chmod
172 def test_directory(self):
173 os.mkdir(TESTFN)
174 os.chmod(TESTFN, 0o700)
175 st_mode, modestr = self.get_mode()
176 self.assertS_IS("DIR", st_mode)
177 if os.name == 'posix':
178 self.assertEqual(modestr, 'drwx------')
179 else:
180 self.assertEqual(modestr[0], 'd')
181
182 @os_helper.skip_unless_symlink
183 def test_link(self):

Callers

nothing calls this directly

Calls 5

get_modeMethod · 0.95
assertS_ISMethod · 0.95
mkdirMethod · 0.45
chmodMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected