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

Method check_stat

Lib/test/test_os/test_windows.py:303–309  ·  view source on GitHub ↗
(self, link, target)

Source from the content-addressed store, hash-verified

301 os.rmdir(self.missing_link)
302
303 def check_stat(self, link, target):
304 self.assertEqual(os.stat(link), os.stat(target))
305 self.assertNotEqual(os.lstat(link), os.stat(link))
306
307 bytes_link = os.fsencode(link)
308 self.assertEqual(os.stat(bytes_link), os.stat(target))
309 self.assertNotEqual(os.lstat(bytes_link), os.stat(bytes_link))
310
311 def test_12084(self):
312 level1 = os.path.abspath(os_helper.TESTFN)

Callers 2

test_directory_linkMethod · 0.95
test_file_linkMethod · 0.95

Calls 4

assertNotEqualMethod · 0.80
lstatMethod · 0.80
assertEqualMethod · 0.45
statMethod · 0.45

Tested by

no test coverage detected